freechat/server/scripts/build-sass.sh
2019-11-13 19:03:19 -08:00

19 lines
411 B
Bash
Executable File

#!/bin/sh
# This script is intended to be called by make ngl
# Building all the ass because this is a massive fucking pain in make
build_dir="static/css"
sass_dir="static/sass"
build() {
echo Building $1 css in $build_dir/$1.css
sass "$sass_dir/$1.scss" "$build_dir/$1.css"
}
# Build each thing because sass blows
for sf in $sass_dir/*;do
b=`basename $sf`
sass "$sf" "$build_dir/${b%.*}.css"
done