- Timestamp:
- 2019-06-20T15:40:58+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/fix_sette_ticket2239/sette_list_avail_rev.sh
r10769 r11153 3 3 # 4 4 lst_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 6 12 CONFIG=$2 13 # list of all revision available 7 14 ALLLST=${@:3} 15 # number of revision total and for CONFIG 8 16 nrevall=`echo $ALLLST | wc -w` 9 17 nrevcfg=`echo $CFGLST | wc -w` 18 # display 10 19 echo "" 11 20 printf "%-27s : " $CONFIG … … 14 23 while [[ $irev -le $nrevall ]] ; do 15 24 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 25 32 irev=$((irev+1)) 26 33 done … … 36 43 # list of all revision available 37 44 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"; done39 # DIRLST=`echo $DIRLST | grep -o -E '\w+' | sort -u -r `40 45 41 # start checking46 # display header 42 47 echo "" 43 48 echo " Compiler used is : $COMPILER" … … 46 51 for dir in `echo $DIRLST`; do printf "%5s " $dir ; done 47 52 printf "\n" 48 # printf "%27s %${nrev}s" "" $DIRLST 53 54 # start checking configuration revision 49 55 echo "" 50 56 echo " !---- check revision available for each configuration ----! "
Note: See TracChangeset
for help on using the changeset viewer.