tail.css/bin/build

13 lines
367 B
Bash
Executable file

#!/bin/sh
set -e
if ! which sass > /dev/null 2>&1; then
echo "No sass compiler found in \$PATH"
exit 1
else
options="--no-cache --scss -r./shim.rb"
mkdir -p dist/
sass ${options} src/tail.scss dist/tail.css
sass ${options} --style compressed src/tail.scss dist/tail.min.css
gzip -9 -k -f dist/tail.css
gzip -9 -k -f dist/tail.min.css
fi