diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-10-12 11:41:29 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-10-12 11:41:29 +0100 |
commit | 8eb8df0438d63978af8f1f453ecc80629c81722c (patch) | |
tree | b1b1f7d8df06c55d1f4325591246f855f1aeef2a /bin/make_css | |
parent | b64d0c685f17551330e7eeef4f57ea93df155f3d (diff) |
Allow argument to be supplied to make_css to only compile that one.
Diffstat (limited to 'bin/make_css')
-rwxr-xr-x | bin/make_css | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/make_css b/bin/make_css index 175440bb4..392d7d7d7 100755 --- a/bin/make_css +++ b/bin/make_css @@ -14,12 +14,17 @@ DIRECTORY=$(cd `dirname $0`/../web && pwd) # FixMyStreet uses compass -NEWSTYLE="fixmystreet bromley fixmybarangay barnet zurich default" +NEWSTYLE=${1:-"fixmystreet bromley fixmybarangay barnet zurich default"} NEWSTYLE_REGEX=${NEWSTYLE// /\\|} for site in $NEWSTYLE; do compass compile --output-style compressed $DIRECTORY/cobrands/$site done +# If given a command line argument, assume was a compass directory and exit +if [ -n "$1" ]; then + exit 0 +fi + # The rest are plain sass for scss in `find $DIRECTORY -name "*.scss" -exec dirname {} \; | uniq | grep -v "cobrands/\($NEWSTYLE_REGEX\)"` do |