New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 11153 for NEMO/branches/2019/fix_sette_ticket2239/sette_list_avail_rev.sh – NEMO

Ignore:
Timestamp:
2019-06-20T15:40:58+02:00 (5 years ago)
Author:
mathiot
Message:

add detection of local modifications in src/cfgs/test, SETTE results saved in XXXXX+ instead of XXXXX if there is differences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/fix_sette_ticket2239/sette_list_avail_rev.sh

    r10769 r11153  
    33# 
    44lst_rev () { 
    5     CFGLST=`ls $1 | sort -u -r `  
     5    # get the list of revision available for a configuration 
     6    if [ ! -d $1 ] ; then  
     7       CFGLST=-9999 
     8    else 
     9       CFGLST=`ls $1 | sort -u -r `  
     10    fi 
     11    # config name 
    612    CONFIG=$2 
     13    # list of all revision available 
    714    ALLLST=${@:3} 
     15    # number of revision total and for CONFIG 
    816    nrevall=`echo $ALLLST | wc -w` 
    917    nrevcfg=`echo $CFGLST | wc -w` 
     18    # display 
    1019    echo "" 
    1120    printf "%-27s : " $CONFIG 
     
    1423    while [[ $irev -le $nrevall ]] ; do 
    1524       rev=`echo $ALLLST | cut -d\  -f ${irev}` 
    16        #while [[ $irevcfg -le $nrevcfg ]] ; do 
    17           cfgrev=`echo $CFGLST | cut -d\  -f ${irevcfg}` 
    18           if [[ $cfgrev -eq $rev ]] ; then 
    19              printf "%-5s  " $rev 
    20              irevcfg=$((irevcfg+1)) 
    21           else 
    22              printf "%-5s  " "*****"  
    23           fi 
    24        #done 
     25       cfgrev=`echo $CFGLST | cut -d\  -f ${irevcfg}` 
     26       if [ $cfgrev == $rev ] ; then 
     27          printf "%-6s  " $rev 
     28          irevcfg=$((irevcfg+1)) 
     29       else 
     30          printf "%-5s  " "***** "  
     31       fi 
    2532       irev=$((irev+1)) 
    2633    done 
     
    3643 # list of all revision available 
    3744 DIRLST=`find ${NEMO_VALID} -maxdepth 3 -mindepth 3 -type d | sed -e 's/.*\/W.*\///' | sort -u -r` 
    38 # DIRLST='';for dir in `find ${NEMO_VALID} -maxdepth 3 -mindepth 3 -iname [0-9][0-9][0-9][0-9][0-9]` ; do REV=`basename $dir`; DIRLST="$DIRLST $REV"; done 
    39 # DIRLST=`echo $DIRLST | grep -o -E '\w+' | sort -u -r ` 
    4045 
    41  # start checking 
     46 # display header 
    4247 echo "" 
    4348 echo " Compiler used is : $COMPILER" 
     
    4651 for dir in `echo $DIRLST`; do printf "%5s  " $dir ; done 
    4752 printf "\n" 
    48 # printf "%27s %${nrev}s" "" $DIRLST 
     53 
     54 # start checking configuration revision 
    4955 echo "" 
    5056 echo "   !---- check revision available for each configuration ----!   " 
Note: See TracChangeset for help on using the changeset viewer.