changeset 1185:492fd5a8080d

quickinstall: use DIR environment variable for the virtualenv directory, default to DIR=env
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 26 Dec 2011 10:42:46 +0100
parents 3cb39729ee3d
children 7fcca568fed1
files quickinstall
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/quickinstall	Sun Dec 25 03:49:39 2011 +0100
+++ b/quickinstall	Mon Dec 26 10:42:46 2011 +0100
@@ -1,13 +1,20 @@
 #!/bin/bash
 # create a virtual environment in directory $DIR/
+#
 # set PYTHON environment variable to change the python version
+# set DIR environment variable to change the virtual env directory
 # set VIRTUALENV environment variable to change the virtualenv command
-# for example: PYTHON=/usr/bin/pypy ./quickinstall
+# for example: PYTHON=/usr/bin/pypy DIR=env-pypy ./quickinstall
+#
 # needs: virtualenv, pip
 
-DIR=env
 DLC=dlc
 
+# if DIR is not given, use ./env
+if [ -z "$DIR" ]; then
+    DIR=env
+fi
+
 # find the right python version
 if [ -z "$PYTHON" ]; then
     for PYTHON in python{2.7,2.6,2,}; do