website/build.sh

14 lines
296 B
Bash
Raw Normal View History

2018-10-01 18:51:34 +00:00
#!/bin/sh
cd $HOME/build/kaboom.pw/
2018-04-02 21:12:19 +00:00
rm Gemfile.lock
2018-10-01 14:03:14 +00:00
bundle install
if bundle exec jekyll build --destination $HOME/html/kaboom.pw/; then
2018-04-02 21:12:19 +00:00
cd $HOME/html/kaboom.pw/
2018-10-01 14:03:14 +00:00
rm -rf *.br
rm -rf *.gz
for file in `find . -type f -name '*'`; do
$HOME/build/zopfli $file
$HOME/build/brotli $file
done
fi