Skip to content

Instantly share code, notes, and snippets.

@oremj
Created January 27, 2010 17:12
Show Gist options
  • Save oremj/288014 to your computer and use it in GitHub Desktop.
Save oremj/288014 to your computer and use it in GitHub Desktop.
#!/bin/bash
DATE=$(date "+%Y/%m/%d %M:%H:%S")
AMO_PYTHON_ROOT=/data/amo_python
cd $AMO_PYTHON_ROOT;
pushd src/preview/zamboni
git pull -q origin master
popd
/usr/bin/rsync -aq --exclude '.git*' --delete src/preview/ www/preview/
pushd www
git add .
git commit -q -a -m "Push AMO python: $DATE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment