From: Frederic Massart Date: Wed, 24 Jul 2013 05:55:56 +0000 (+0800) Subject: Script to compile the less files of bootstrapbase X-Git-Tag: v0.4.2~17 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=3d481f8928ef6b310d5cc32e1532f5b5a2731b72;p=mdk.git Script to compile the less files of bootstrapbase --- diff --git a/scripts/less.sh b/scripts/less.sh new file mode 100644 index 0000000..b61dcb7 --- /dev/null +++ b/scripts/less.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# +# Compile the Less files of Bootstrap base. +# + +P=`mdk info -v path` +if [[ -z "$(which recess)" ]]; then + echo "Recess could not be found. Aborting..." + exit 1 +fi + +DIR="$P/theme/bootstrapbase/less" +if [[ ! -d "$DIR" ]]; then + echo "Could not find theme/boostrapbase. Aborting..." + exit 2 +fi + +echo "Compiling theme/bootstrapbase CSS" +cd "$DIR" +recess --compile --compress moodle.less > ../style/moodle.css +recess --compile --compress editor.less > ../style/editor.css