src/utils/qa/getRRdumpfile.csh 1.4

1.4 2009/09/08 17:47:26 kuhn
fixed updateTimes.csh to work with msyql v5.0 dumps. also simplified the way it works, removing some of the flexibily seldom used. changed call in genbankRun.csh to use new version.
Index: src/utils/qa/getRRdumpfile.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/getRRdumpfile.csh,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -B -U 4 -r1.3 -r1.4
--- src/utils/qa/getRRdumpfile.csh	11 Apr 2009 00:37:04 -0000	1.3
+++ src/utils/qa/getRRdumpfile.csh	8 Sep 2009 17:47:26 -0000	1.4
@@ -10,37 +10,26 @@
 ################################
 
 set database=""
 set rootpath="/cluster/data/genbank/var/tblstats"  # mark's TABLE STATUS dump
-set machine="hgw1"
+set machine="hgnfs1"
 set dirname=""
 set machpath=""
-set fullpath=""
 set dumpfile=""
 
-if ( $#argv < 1 | $#argv > 2 ) then
+if ( $#argv != 1 ) 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, [RRmachine] (defaults to hgw1)"
+  echo "    usage: database"
   echo
   exit
 else
   set database=$argv[1]
 endif
 
-if ( $#argv == 2 ) then
-  set machine=$argv[2]
-endif
-
-# check for valid machines
-checkMachineName.csh $machine
-if ( $status ) then
-  exit 1
-endif
-
 # set path to directory of dated dumps for the proper machine
 set machpath=$rootpath/$machine
 
 if (! -e $machpath ) then
@@ -51,10 +40,10 @@
 endif
 
 # set path to latest stored TABLE STATUS dumps
 set dirname=`ls -1 $machpath | tail -1`
-set fullpath=$machpath/$dirname
-set dumpfile=$fullpath/$database.tbls
+
+set dumpfile=$machpath/$dirname/$database.tbls
 
 if (! -e $dumpfile ) then
   echo
   echo "  database $database -- does not exist on $machine"
@@ -72,9 +61,8 @@
   echo "database = $database"
   echo "machine  = $machine"
   echo
   echo "machpath = $machpath"
-  echo "fullpath = $fullpath"
   echo "dumpfile = $dumpfile"
   echo
   # exit
 endif