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:52:43 +01:00
FILE_PATH="$(dirname "$0")"
2017-01-01 22:35:59 +01:00
2017-01-01 22:44:33 +01:00
for file in $(ls "${FILE_PATH}/"*.less); do
2017-01-01 22:35:59 +01:00
filename="${file##*/}"
themeName="${filename%.less}"
if [[ "$filename" == "base.less" ]]; then
continue;
fi
echo "Building ${themeName}"
lessc "${file}" > "${FILE_PATH}/../public/css/${themeName}.css"
done