blob: 2ee90642fd4c957fb99675c16d3bb2fd51834c30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
ZOPFLI="$(command -v zopfli)"
GZIP="$(command -v gzip)"
if [ -n $ZOPFLI ]; then
echo "$ZOPFLI"
elif [ -n $GZIP ]; then
echo >&2 "Consider obtaining zopfli (https://code.google.com/p/zopfli/)"
echo >&2 "for higher compression ratios (about 5% decrease in size of"
echo >&2 "script.json.gz."
echo "$GZIP -9"
else
echo >&2 "Could not find zopfli or gzip, aborting."
exit 1
fi
|