a09bbe8aa2ac6ab066988d6aeebde57aea26907d kuhn Wed Apr 2 12:37:15 2014 -0700 made it possible to run in verbose and noEuro modes together diff --git src/utils/qa/updateTimes.csh src/utils/qa/updateTimes.csh index d39558a..2bb5fbf 100755 --- src/utils/qa/updateTimes.csh +++ src/utils/qa/updateTimes.csh @@ -14,58 +14,59 @@ set db="" set dot=( '. ' '. ' '. ' '. ' '. ') set first="" set second="" set third="" set fourth="" set noEuro=false set fifth="" # euro if ( $#argv < 2 || $#argv > 3 ) then echo echo " gets update times for three machines for tables in list." echo " if table is trackDb, trackDb_public will also be checked." echo " warning: not in real time for RR. uses overnight dump." echo - echo " usage: database tablelist [verbose | noEuro]" + echo " usage: database tablelist [verbose | noEuro | verboseNoEuro]" echo echo " reports on dev, beta, RR and euronode" echo " tablelist will accept single table" echo " verbose mode will print machines names" + echo " noEuro mode will stop before checking genome-euro" echo exit else set db=$argv[1] set tablelist=$argv[2] endif # cat $tablelist if ( "$HOST" != "hgwdev" ) then echo "\n error: you must run this script on dev!\n" exit 1 endif if ( $#argv == 3 ) then - if ( $argv[3] == "verbose" ) then - set dot=( 'dev ' 'beta ' 'pub ' 'rr ' 'euro ' ) - else - if ( $argv[3] == "noEuro" ) then + if ( $argv[3] == "noEuro" || $argv[3] == "verboseNoEuro" ) then set noEuro=true + endif + if ( $argv[3] == "verbose" || $argv[3] == "verboseNoEuro" ) then + set dot=( 'dev ' 'beta ' 'pub ' 'rr ' 'euro ' ) else - echo - echo 'sorry. third argument must be "verbose" or "noEuro"' + if ( $noEuro == "false" ) then + echo '\nsorry. third argument must be "verbose" or "noEuro" or "verboseNoEuro"' $0 exit endif endif endif # check if it is a file or a tablename file $tablelist | egrep -q "ASCII text" if (! $status) then set tables=`cat $tablelist` else set tables=$tablelist endif