engelsystem/themes/build-themes.sh

16 lines
326 B
Bash
Raw Normal View History

2017-01-01 22:35:59 +01:00
#!/bin/bash
2014-12-12 22:34:13 +01:00
2017-01-01 22:35:59 +01:00
FILE_PATH="`dirname \"$0\"`"
for file in `ls "${FILE_PATH}/"*.less`; do
filename="${file##*/}"
themeName="${filename%.less}"
if [[ "$filename" == "base.less" ]]; then
continue;
fi
echo "Building ${themeName}"
lessc "${file}" > "${FILE_PATH}/../public/css/${themeName}.css"
done