18 lines
388 B
Plaintext
18 lines
388 B
Plaintext
|
#!/bin/bash
|
||
|
set -xeuo pipefail
|
||
|
cd "$(git rev-parse --show-toplevel)/jakstys.lt"
|
||
|
|
||
|
rm -fr public
|
||
|
hugo
|
||
|
|
||
|
cd public
|
||
|
zopfli=$(bazel run --run_under=echo @zopfli//:zopfli)
|
||
|
brotli=$(bazel run --run_under=echo @brotli//:brotli)
|
||
|
|
||
|
find . \
|
||
|
-name '*.html' -or \
|
||
|
-name '*.xml' -or \
|
||
|
-name '*.txt' -or \
|
||
|
-name '*.css' -or \
|
||
|
-name '*.map' | parallel --bar "$zopfli {} && $brotli {}"
|