src/utils/qa/getRRdumpfile.csh 1.5
1.5 2009/09/10 22:33:57 kuhn
adjusted getRR to look in the dumps for dev and beta values, too. fixed getTableSize.csh to use them properly
Index: src/utils/qa/getRRdumpfile.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/getRRdumpfile.csh,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/utils/qa/getRRdumpfile.csh 8 Sep 2009 17:47:26 -0000 1.4
+++ src/utils/qa/getRRdumpfile.csh 10 Sep 2009 22:33:57 -0000 1.5
@@ -15,21 +15,38 @@
set dirname=""
set machpath=""
set dumpfile=""
-if ( $#argv != 1 ) then
+if ( $#argv < 1 || $#argv > 2 ) then
echo
echo " gets the filename of the TABLE STATUS dump from RR"
echo " using mark's genbank dumps."
echo " warning: not in real time. uses overnight dump."
echo
- echo " usage: database"
+ echo " usage: database [hgwdev | hgwbeta | rr | hgnfs1]"
+ echo
+ echo " defaults to rr. optionally gives results for dev or beta"
echo
exit
else
set database=$argv[1]
endif
+if ( $#argv == 2 ) then
+ set machine=$argv[2]
+ echo $machine | egrep -q "hgwdev|hgwbeta|rr|hgnfs1"
+ if ( $status ) then
+ echo
+ echo " $machine not a valid machine"
+ echo
+ exit 1
+ endif
+endif
+
+if ( "rr" == $machine ) then
+ set machine="hgnfs1"
+endif
+
# set path to directory of dated dumps for the proper machine
set machpath=$rootpath/$machine
if (! -e $machpath ) then