Skip to content

Instantly share code, notes, and snippets.

@turtlebender
Created January 20, 2012 19:06
Show Gist options
  • Save turtlebender/1649030 to your computer and use it in GitHub Desktop.
Save turtlebender/1649030 to your computer and use it in GitHub Desktop.
#!/bin/bash
export GLOBUS_LOCATION=/usr
export GLOBUS_FLAVOR=
cd ~/graph
if ! git rev-parse --git-dir > /dev/null; then
echo "This is not a git directory"
exit 1
fi
git fetch >/dev/null 2>&1
git branch |grep deploy
git checkout deploy > /dev/null 2>&1 || git checkout -b deploy
local_ref=`git rev-parse HEAD`
remote_ref=`git ls-remote origin integration 2>&1 |cut -f 1`
if [ ${local_ref} != ${remote_ref} ]
then
git reset --hard origin/integration
fi
test -f ~/deploy/bin/activate || virtualenv ~/deploy
source ~/deploy/bin/activate
echo $PATH
pip install -r pip-requires.txt
python setup.py install
deactivate
virtualenv --relocatable ~/deploy
rm /vagrant/globusonline.sqsh
mksquashfs ~/deploy /vagrant/globusonline.sqsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment