Changeset 12569 for utils/CI/sette/sette_list_avail_rev.sh
- Timestamp:
- 2020-03-18T12:22:56+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/CI/sette/sette_list_avail_rev.sh
r11161 r12569 1 1 #!/bin/bash -f 2 2 # set -vx 3 4 SETTE_DIR=$(cd $(dirname "$0"); pwd) 5 MAIN_DIR=$(dirname $SETTE_DIR) 6 7 . ./param.cfg 8 9 if [ $# -gt 0 ]; then 10 while getopts c:h option; do 11 case $option in 12 c) COMPILER=$OPTARG;; 13 h | *) echo '' 14 echo 'sette_list_avail_rev.sh : ' 15 echo ' list all sette directory and available revisions created with the compiler specified in param.cfg or in the startup file)' 16 echo '-c COMPILER_name :' 17 echo ' list all sette directory and available revisions created with the compiler specified' 18 echo '' 19 exit 42;; 20 esac 21 done 22 shift $((OPTIND - 1)) 23 fi 24 3 25 # 4 26 lst_rev () { … … 24 46 rev=`echo $ALLLST | cut -d\ -f ${irev}` 25 47 cfgrev=`echo $CFGLST | cut -d\ -f ${irevcfg}` 48 if [ -z $cfgrev ] ; then cfgrev=-9999 ; fi 26 49 if [ $cfgrev == $rev ] ; then 27 50 printf "%-6s " $rev … … 34 57 } 35 58 36 SETTE_DIR=$(cd $(dirname "$0"); pwd)37 MAIN_DIR=$(dirname $SETTE_DIR)38 . ./param.cfg39 59 40 mach=${COMPILER} 41 NEMO_VALID=${NEMO_VALIDATION_DIR} 60 NEMO_VALID=${NEMO_VALIDATION_DIR}/ 42 61 43 62 # list of all revision available 44 DIRLST=`find ${NEMO_VALID} -maxdepth 3 -mindepth 3 -type d | sed -e 's/.*\/W.*\///'| sort -u -r`63 DIRLST=`find ${NEMO_VALID} -maxdepth 3 -mindepth 3 -type d -regex ".*\/W.*\/${COMPILER}\/.*" | sed -e "s/.*\/W.*\/${COMPILER}\///" | sort -u -r` 45 64 46 65 # display header … … 49 68 echo "" 50 69 printf " List of all avail. rev. is : " 51 for dir in `echo $DIRLST`; do printf "% 5s " $dir ; done70 for dir in `echo $DIRLST`; do printf "%-6s " $dir ; done 52 71 printf "\n" 53 72
Note: See TracChangeset
for help on using the changeset viewer.