Mercurial > hg > config
comparison bin/venvit.sh @ 0:f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
| author | k0s <k0scist@gmail.com> |
|---|---|
| date | Thu, 15 Oct 2009 11:41:26 -0400 |
| parents | |
| children | ac08d765aa32 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:f3ab51c79813 |
|---|---|
| 1 #!/bin/bash | |
| 2 | |
| 3 if (( $# != 1 )) | |
| 4 then | |
| 5 echo "Usage: $0 <svn-location>" | |
| 6 exit 0 | |
| 7 fi | |
| 8 | |
| 9 NAME=$1 | |
| 10 | |
| 11 for i in /trunk /branches /tag | |
| 12 do | |
| 13 NAME=${NAME%%$i*} | |
| 14 done | |
| 15 NAME=${NAME##*/} | |
| 16 | |
| 17 #echo $NAME | |
| 18 | |
| 19 VIRTUAL_ENV_LOCATION="${HOME}/virtualenv/virtualenv.py" | |
| 20 | |
| 21 python ${VIRTUAL_ENV_LOCATION} ${NAME} | |
| 22 cd ${NAME} | |
| 23 source bin/activate | |
| 24 mkdir src/ | |
| 25 cd src/ | |
| 26 svn co $1 ${NAME} | |
| 27 cd ${NAME} | |
| 28 python setup.py develop |
