Ignore:
Timestamp:
07/02/13 09:24:16 (12 years ago)
Author:
Mathieu Morlighem
Message:

merged trunk-jpl and trunk for revision 15394

Location:
issm/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk

  • issm/trunk/scripts/issmconfiguration.sh

    r12332 r15396  
    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        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
    2032
    21                 echo -n "Configuration choice: "
    22                 read choice
    23         else
    24                 choice=$1
    25         fi
     33        echo -n "Configuration choice: "
     34        read choice
    2635
    2736        #Now go backto the list and retrieve the name of the configuration file:
    2837        COUNT=0;
    2938        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
    3046        do
    3147                let COUNT=$COUNT+1
     
    4157
    4258        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
    4366        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
    4572       
    4673        #we are done, go back to original directory:
     
    5178fi
    5279
    53 
    54 
    55 
    56 
    57 
    5880#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.