Skip to content
Snippets Groups Projects
Commit 6712f040 authored by Arkerthan's avatar Arkerthan
Browse files

add theme generator for compile.sh

parent 2574bdd3
No related branches found
No related tags found
1 merge request!6999Theme generator and a VERY simple light theme
......@@ -13,6 +13,7 @@ Options:
-h, --help Show this help text
-s, --sanity Run sanityCheck
-q, --quiet Suppress terminal output
-t, --themes Generate theme files
HelpText
}
......@@ -110,6 +111,9 @@ else
-q | --quiet)
output=/dev/null
;;
-t | --themes)
themes="true"
;;
*)
echoError "Unknown argument $1."
displayHelp
......@@ -134,3 +138,16 @@ else
compile
echoMessage "Compilation finished."
fi
# compile themes
if [[ "$themes" ]]; then
(
cd themes/ || exit
for D in *; do
if [ -d "${D}" ]; then
../devTools/concatFiles.sh "${D}"/ '*.css' ../bin/"${D}".css
fi
done
)
echoMessage "Themes compiled"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment