scratch/tasks/hpublish

21 lines
500 B
Text
Raw Normal View History

2010-09-10 12:37:51 +00:00
#!/usr/bin/env zsh
2012-01-02 20:49:11 +00:00
if [[ $HOST = "iMac-de-Yann.local" ]]; then
2010-09-10 12:37:51 +00:00
cd $HOME/Sites/webroot
2010-10-06 22:47:37 +00:00
git co master
2010-10-10 19:23:24 +00:00
(( $? == 0 )) || { exit 1 }
2010-10-06 22:47:37 +00:00
git pull
2010-10-10 19:23:24 +00:00
(( $? == 0 )) || { exit 1 }
2010-10-14 13:29:16 +00:00
# empty regen depencies cache because of a bug
2010-10-14 13:46:48 +00:00
# \rm -f ./tmp/*
2010-09-10 12:39:28 +00:00
./tasks/recompile
2010-09-10 12:37:51 +00:00
if git status | grep 'nothing to commit'>/dev/null 2>&1; then
2010-09-10 14:52:21 +00:00
else
2010-10-26 15:01:00 +00:00
git add .
git commit -m "regeneration"
2010-09-10 12:37:51 +00:00
fi
git push heroku master
else
ssh yimac ./Sites/webroot/tasks/hpublish
fi