src/utils/qa/findNewTables.csh 1.10

1.10 2009/09/25 15:39:38 kuhn
fixed the way GENBANK list is used
Index: src/utils/qa/findNewTables.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/findNewTables.csh,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -B -U 1000000 -r1.9 -r1.10
--- src/utils/qa/findNewTables.csh	21 Sep 2009 15:22:27 -0000	1.9
+++ src/utils/qa/findNewTables.csh	25 Sep 2009 15:39:38 -0000	1.10
@@ -1,49 +1,50 @@
 #!/bin/tcsh
 source `which qaConfig.csh`
 
 ###############################################
 # 
 #  05-23-08
 #  Robert Kuhn
 #
 #  finds any tables made since yesterday
 # 
 ###############################################
 
 set dbs=""
 set yesterdate=""
 
 if ($#argv == 0 || $#argv > 1) then
   # no command line args
   echo
   echo "  finds any tables made yesterday."
   echo
   echo "    usage:  database(s) "
   echo
   echo '      will take comma-separated list:  "hg18,mm9"'
   echo
   exit
 else
   set dbs=`echo $argv[1] | sed "s/,/ /g"`
 endif
 
 if ( "$HOST" != "hgwdev" ) then
  echo "\n  error: you must run this script on dev!\n"
  exit 1
 endif
 
 # set yesterdate=2009-03-11
 set yesterdate=`date +%Y-%m-%d --date='1 day ago'`
 
 echo
 echo $yesterdate "new or updated tables"
 echo
 
 foreach db ( $dbs )
   echo $db
-  getTableStatus.csh  $db hgwdev | awk -F"\t" '{print $1, $13}' | grep $yesterdate \
-    | awk '{print $1}' | egrep -v "trackDb|hgFindSpec|tableDescriptions|$GENBANK"
+  getTableStatus.csh  $db hgwdev | awk -F"\t" '{print $1, $13}' \
+    | grep $yesterdate | awk '{print $1}' \
+    | egrep -v "trackDb|hgFindSpec|tableDescriptions" | egrep -rv -f $GENBANK
   echo
 end