#!/bin/sh
rm -rf ngx_brotli
git clone https://github.com/google/ngx_brotli.git
( cd ngx_brotli
  git submodule init
  git submodule update --recursive 
)
tar cvf - --exclude .git ngx_brotli | xz -9 >ngx_brotli-`date '+%Y%m%d'`.tar.xz
rm -rf ngx_brotli
