Changeset 15396 for issm/trunk/scripts/issmconfiguration.sh
- Timestamp:
- 07/02/13 09:24:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 par 2 ad 3 proj-* 1 4 projects 2 5 autom4te.cache
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 14311,14313,14316-14506,14508-15387,15390-15392
- Property svn:ignore
-
issm/trunk/scripts/issmconfiguration.sh
r12332 r15396 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 printf 'ISSM wide configurations\n' 21 for STEP in $LIST 22 do 23 let COUNT=$COUNT+1 24 printf '%3i: %s\n' $COUNT $STEP 25 done 26 printf 'Personal configuration\n' 27 for STEP in $LIST2 28 do 29 let COUNT=$COUNT+1 30 printf '%3i: %s\n' $COUNT $STEP 31 done 20 32 21 echo -n "Configuration choice: " 22 read choice 23 else 24 choice=$1 25 fi 33 echo -n "Configuration choice: " 34 read choice 26 35 27 36 #Now go backto the list and retrieve the name of the configuration file: 28 37 COUNT=0; 29 38 for STEP in $LIST 39 do 40 let COUNT=$COUNT+1 41 if [[ $COUNT == $choice ]]; then 42 configurename=$STEP 43 fi 44 done 45 for STEP in $LIST2 30 46 do 31 47 let COUNT=$COUNT+1 … … 41 57 42 58 cd $ISSM_DIR 59 60 #at this point, was a cleanup of the archive requested? 61 if [ "$1" == "clean" ]; 62 then 63 make uninstall && make distclean 64 fi 65 43 66 source ./scripts/automakererun.sh 44 source configs/$configurename 67 if [ -f configs/$configurename ]; then 68 source configs/$configurename 69 else 70 source $JPL_SVN/usr/$USER/configs/$configurename 71 fi 45 72 46 73 #we are done, go back to original directory: … … 51 78 fi 52 79 53 54 55 56 57 58 80 #alias aut='a=`pwd` && cd $ISSM_DIR && ./scripts/automakererun.sh && ./configs/config-macosx64-larour-nopetsc.sh'
Note:
See TracChangeset
for help on using the changeset viewer.