Created
October 14, 2011 14:05
-
-
Save msadouni/1287205 to your computer and use it in GitHub Desktop.
Git pre-commit hook to compile Compass files to production for a CakePHP app
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/sh | |
if git-rev-parse --verify HEAD >/dev/null 2>&1; then | |
against=HEAD | |
else | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
fi | |
compass compile --output-style compressed --force | |
git add webroot/css/*.css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment