Created
June 6, 2012 16:01
-
-
Save anonymous/2882887 to your computer and use it in GitHub Desktop.
This file contains 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 test "$(git diff --name-only HEAD@{1} | ack '500|404|home.html|static-content')" | |
then | |
echo "running ./manage.py generatemedia to update files" | |
python myproject/manage.py generatemedia --nodebug | |
git add -A myproject/_generated_media/* | |
git add -A static-content/* | |
git commit -m "updating media (automatic update by git merge hook)" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment