Changeset 14607


Ignore:
Timestamp:
04/16/13 15:32:15 (12 years ago)
Author:
Eric.Larour
Message:

CHG: adapted issmconfiguration.sh to include JPL_SVN/usr/USERS/configs directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/scripts/issmconfiguration.sh

    r12159 r14607  
    1111        LIST=`ls`
    1212       
    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
    2030
    21                 echo -n "Configuration choice: "
    22                 read choice
    23         else
    24                 choice=$1
    25         fi
     31        echo -n "Configuration choice: "
     32        read choice
    2633
    2734        #Now go backto the list and retrieve the name of the configuration file:
    2835        COUNT=0;
    2936        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
    3044        do
    3145                let COUNT=$COUNT+1
Note: See TracChangeset for help on using the changeset viewer.