Skip to content

Instantly share code, notes, and snippets.

@tmbritton
Created November 20, 2013 19:46
Show Gist options
  • Save tmbritton/7569766 to your computer and use it in GitHub Desktop.
Save tmbritton/7569766 to your computer and use it in GitHub Desktop.
Bash script for pre-deployment compass compilation
#!/bin/bash
#
# Rebuild CSS with Compass for both desktop and mobile theme
USER_HOME=$(eval echo ~${SUDO_USER})
DOCROOT="$USER_HOME/Sites/wfmcom/docroot/"
cd $(echo $DOCROOT/sites/all/themes/wholefoods)
pwd
THEME=$(pwd)
rm $(echo $THEME/css/style.css)
compass compile
cd $(echo $DOCROOT/sites/all/themes/wholefoods_mobile)
pwd
THEME=$(pwd)
rm $(echo $THEME/css/styles.css)
compass compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment