![]() ![]() |
![]() |
File: [Development] / JSOC / proj / globalhs / scripts / checkglobalhsargs
(download)
Revision: 1.3, Sat May 24 15:52:25 2014 UTC (9 years ago) by tplarson Branch: MAIN CVS Tags: Ver_8-6, Ver_8-5 Changes since 1.2: +1 -1 lines added step invert |
#! /bin/tcsh -f @ numequals = `echo $argv | sed s/=/"\n"/g | wc -l` - 1 if ($numequals < $#argv) then echo no space is permitted after the equal sign in parameter value assignments exit 1 endif set paramlist = (label starttime totaltime lmin lmax \ lchunk lchunk1 lchunk2 lchunk3 lchunk4 lchunk5 \ timechunk timechunk1 timechunk2 \ powtotaltime slicestep powstartoffset \ firststep laststep topdir \ retnjobs tsfnjobs pownjobs pkbnjobs \ v2tjobthreshold retjobthreshold tsfjobthreshold powjobthreshold pkbjobthreshold \ v2tqueue retqueue tsfqueue powqueue pkbqueue) @ i = 1 while ($i <= $#argv ) set param = `echo $argv[$i] | cut -d= -f1` set test = `echo $paramlist | sed s/" "/"\n"/g | grep -cw $param` if ($test != 1) then echo $param is not a valid parameter for doglobalhs exit 1 endif @ i++ end set steplist = (sht shtcheck retilen dscopyn retile retile1 dscopy1 mkgaps gapfill gfgaps pow slice pkbgn invert) @ i = 1 while ($i <= $#argv ) set $argv[$i] @ i++ end if ($?firststep) then set test = `echo $steplist | sed s/" "/"\n"/g | grep -cw $firststep` if ($test != 1) then echo \"$firststep\" is not a valid value for parameter firststep exit 1 endif endif if ($?laststep) then set test = `echo $steplist | sed s/" "/"\n"/g | grep -cw $laststep` if ($test != 1) then echo \"$laststep\" is not a valid value for parameter laststep exit 1 endif endif
Karen Tian |
Powered by ViewCVS 0.9.4 |