diff options
author | Pixpoa pairing <pixpoapairing@pixelated-project.org> | 2015-01-22 16:53:33 -0200 |
---|---|---|
committer | Pixpoa pairing <pixpoapairing@pixelated-project.org> | 2015-01-22 16:54:12 -0200 |
commit | ff2dfcc7f53eda09190089f8498177745afa6b26 (patch) | |
tree | 4d2c9f8d130410471b342f3c4d4eca6136e4d9c2 /install-pixelated.sh | |
parent | 86ed99a7d78e4690d103f4334dc0eef03c47e402 (diff) | |
parent | 895d1ae9e5d0260b3d55b352deab7be589d24a99 (diff) |
Merging wheezy-packages branch
Diffstat (limited to 'install-pixelated.sh')
-rwxr-xr-x | install-pixelated.sh | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/install-pixelated.sh b/install-pixelated.sh index fa6cd1e4..3e430783 100755 --- a/install-pixelated.sh +++ b/install-pixelated.sh @@ -24,6 +24,22 @@ then export USERNAME=`whoami` fi +usage() { echo "Usage: $0 [-v <virtualenv path>]" 1>&2; exit 1; } + +VIRTUALENV_PATH=".virtualenv" + +while getopts "v:" OPT; do + case "${OPT}" in + v) + VIRTUALENV_PATH=${OPTARG} + ;; + *) + usage + ;; + esac +done +shift $((OPTIND-1)) + function check_installed() { which $1 if [ $? -ne 0 ]; then @@ -46,9 +62,9 @@ LC_ALL=en_US.UTF-8 ./go build # install service dependencies cd ../service -rm -rf .virtualenv -virtualenv .virtualenv -source .virtualenv/bin/activate +rm -rf "$VIRTUALENV_PATH" +virtualenv "$VIRTUALENV_PATH" +source "$VIRTUALENV_PATH/bin/activate" ./go setup --always-unzip pip uninstall -y enum34 pip install enum34 |