Created
November 20, 2013 19:46
-
-
Save tmbritton/7569766 to your computer and use it in GitHub Desktop.
Bash script for pre-deployment compass compilation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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