website/build.sh
2018-10-01 17:03:14 +03:00

13 lines
303 B
Bash
Executable file

#!/bin/bash
cd $HOME/build/kaboom-website/
rm Gemfile.lock
bundle install
if bundle exec jekyll build --destination $HOME/html/kaboom.pw/; then
cd $HOME/html/kaboom.pw/
rm -rf *.br
rm -rf *.gz
for file in `find . -type f -name '*'`; do
$HOME/build/zopfli $file
$HOME/build/brotli $file
done
fi