Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 28 lines (24 sloc) 1016 Bytes
#!/bin/bash
#
# make_css:
# Generate CSS files from SCSS files.
#
# Requires sass which you can get from http://sass-lang.com/
# FixMyStreet cobrand requires compass
#
# Copyright (c) 2012 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
# $Id: send-reports,v 1.79 2010-01-06 16:50:26 louise Exp $
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
compass compile --output-style compressed $DIRECTORY/cobrands/barnet
compass compile --output-style compressed $DIRECTORY/cobrands/zurich
compass compile --output-style compressed $DIRECTORY/cobrands/default
# The rest are plain sass
for scss in `find $DIRECTORY -name "*.scss" -exec dirname {} \; | uniq | grep -v "cobrands/\(fixmystreet\|bromley\|barnet\|default\|zurich\)"`
do
sass --scss --update --style compressed $scss
done