aboutsummaryrefslogtreecommitdiffstats
path: root/bin/make_css
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-04-25 18:38:47 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-04-25 18:38:47 +0100
commitf61481437045a6e721891355c039882493f42e14 (patch)
treea870e21dcd5d8a69df04392d2165732f6a05d03d /bin/make_css
parent905b21a5e23f04cd51fcc9d0700a2d859638bb88 (diff)
Black/white colour for FMB (and can be used for default look later, hopefully).
Diffstat (limited to 'bin/make_css')
-rwxr-xr-xbin/make_css9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/make_css b/bin/make_css
index 27cbec1b5..c362fda97 100755
--- a/bin/make_css
+++ b/bin/make_css
@@ -14,11 +14,14 @@
DIRECTORY=$(cd `dirname $0`/../web && pwd)
# FixMyStreet uses compass
-compass compile --output-style compressed $DIRECTORY/cobrands/fixmystreet
-compass compile --output-style compressed $DIRECTORY/cobrands/bromley
+NEWSTYLE="fixmystreet bromley fixmybarangay"
+NEWSTYLE_REGEX=${NEWSTYLE// /\\|}
+for site in $NEWSTYLE; do
+ compass compile --output-style compressed $DIRECTORY/cobrands/$site
+done
# The rest are plain sass
-for scss in `find $DIRECTORY -name "*.scss" -exec dirname {} \; | uniq | grep -v "cobrands/\(fixmystreet\|bromley\)"`
+for scss in `find $DIRECTORY -name "*.scss" -exec dirname {} \; | uniq | grep -v "cobrands/\($NEWSTYLE_REGEX\)"`
do
sass --scss --update --style compressed $scss
done