Author: jhammel
Date: 2008-01-08 11:53:18 -0500 (Tue, 08 Jan 2008)
New Revision: 12405

Modified:
   config/jhammel/bin/buildstuff.sh
Log:
adding dynamically changing $ENV

Modified: config/jhammel/bin/buildstuff.sh
===================================================================
--- config/jhammel/bin/buildstuff.sh    2008-01-08 16:15:07 UTC (rev 12404)
+++ config/jhammel/bin/buildstuff.sh    2008-01-08 16:53:18 UTC (rev 12405)
@@ -5,7 +5,6 @@
 BASEPORT=10000
 NPORTS=9
 ENV=~/fsm.env
-VAR=${ENV}/foo/var
 PROJECTS="all"
 
 ### functions
@@ -86,11 +85,11 @@
 
 ### configuration
 
-while getopts ":p:" option
+while getopts ":p:e:" option
 do
     case $option in
        p ) PROJECTS=$( echo ${OPTARG} | sed 
's/\([a-zA-Z0-9]*\)/fassembler:\1/g' );;
-       # PROJECTS = [ 'fassembler:%s' % i for i in ${OPTARG} ]
+       e ) ENV=${OPTARG};;     
     esac
 done
 shift $(($OPTIND - 1))
@@ -100,6 +99,7 @@
 
 ### derived variables
 
+VAR=${ENV}/foo/var
 FASSEMBLER_SRC=${ENV}/fassembler/src/fassembler
 ADMIN_FILE=${VAR}/admin.txt
 
@@ -124,8 +124,8 @@
 cd ${ENV}
 
 ### build the software
-bin/fassembler -vv fassembler:topp base_port=${BASEPORT} var=${VAR}
-bin/fassembler -vv ${PROJECTS}
+bin/fassembler -vv --no-interactive fassembler:topp base_port=${BASEPORT} 
var=${VAR}
+bin/fassembler -vv --no-interactive ${PROJECTS}
 
 ### start the services
 echo "-- starting services --"



--
Archive: 
http://www.openplans.org/projects/opencore/lists/openplans-svn/archive/2008/01/1199811210042
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]  
Please contact [EMAIL PROTECTED] for questions.

Reply via email to