website/build.sh

14 lines
318 B
Bash
Raw Normal View History

2018-04-02 21:12:19 +00:00
#!/bin/bash
cd $HOME/build-websites/kaboom-website/
rm Gemfile.lock
bundle install
if 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-websites/zopfli $file
$HOME/build-websites/brotli $file
done
fi