Changeset 14607
- Timestamp:
- 04/16/13 15:32:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/scripts/issmconfiguration.sh
r12159 r14607 11 11 LIST=`ls` 12 12 13 if [[ $# == "0" ]]; then 14 COUNT=0; 15 for STEP in $LIST 16 do 17 let COUNT=$COUNT+1 18 printf '%3i: %s\n' $COUNT $STEP 19 done 13 if test -d "$JPL_SVN/usr/$USER/configs"; then 14 cd $JPL_SVN/usr/$USER/configs 15 LIST2=`ls` 16 fi 17 18 #print choices 19 COUNT=0; 20 for STEP in $LIST 21 do 22 let COUNT=$COUNT+1 23 printf '%3i: %s\n' $COUNT $STEP 24 done 25 for STEP in $LIST2 26 do 27 let COUNT=$COUNT+1 28 printf '%3i: %s\n' $COUNT $STEP 29 done 20 30 21 echo -n "Configuration choice: " 22 read choice 23 else 24 choice=$1 25 fi 31 echo -n "Configuration choice: " 32 read choice 26 33 27 34 #Now go backto the list and retrieve the name of the configuration file: 28 35 COUNT=0; 29 36 for STEP in $LIST 37 do 38 let COUNT=$COUNT+1 39 if [[ $COUNT == $choice ]]; then 40 configurename=$STEP 41 fi 42 done 43 for STEP in $LIST2 30 44 do 31 45 let COUNT=$COUNT+1
Note:
See TracChangeset
for help on using the changeset viewer.