Merge branch 'gzipcompress'

This commit is contained in:
Saivann 2015-06-26 10:57:39 -04:00
commit 0b0fe286fa

View file

@ -64,6 +64,7 @@ do
# Update site and exit if site has been successfully built # Update site and exit if site has been successfully built
if [ -e "$WORKDIR/_builddone" ]; then if [ -e "$WORKDIR/_builddone" ]; then
find $WORKDIR/_site \( -iname '*.html' -o -iname '*.css' -o -iname '*.js' -o -iname '*.rss' -o -iname '*.xml' -o -iname '*.svg' -o -iname '*.ttf' \) -exec gzip -9 -k {} \;
rsync --delete -zrt $WORKDIR/_site/ $DESTDIR/ rsync --delete -zrt $WORKDIR/_site/ $DESTDIR/
exit exit
fi fi