ed84782073f23cedfa41596e1e6de157fb84270a
rhead
  Mon Oct 1 18:19:28 2012 -0700
Changed requirement to run on hgwdev to capability to run on either hgwdev or hgwbeta.
diff --git src/utils/qa/findOrg.csh src/utils/qa/findOrg.csh
index 09ce981..636b788 100755
--- src/utils/qa/findOrg.csh
+++ src/utils/qa/findOrg.csh
@@ -1,45 +1,50 @@
 #!/bin/tcsh
 source `which qaConfig.csh`
 
 ################################
 #  
 #  03-31-2008
 #  Ann Zweig
 #
 #  Find the organism name given the assembly name
 #
 ################################
 
 set date=""
 
 if ( $#argv < 1  | $#argv > 2 ) then
   echo
   echo " Finds the organism name given the assembly name" 
   echo "  usage: assemblyName [date]"
   echo "         will accept name with or without digit"
   echo "         use 'date' to also retrieve assembly date"
   echo "         (e.g. 'ornAna2' or 'ornAna')"
   echo
   exit 1
 else
   set db=$argv[1]
 endif
 
 if ( $#argv == 2 ) then
   set date=$argv[2]
   if ( $date != "date" ) then
     echo "\n  error. use the word 'date' as second parameter\n"  
     exit 1
   endif
   set date=", description"
 endif
 
-if ( "$HOST" != "hgwdev" ) then
- echo "\n ERROR: you must run this script on dev!\n"
+set host=`uname -n`
+if ( "$host" == hgwdev ) then
+  set centralDb=hgcentraltest
+else if ( "$host" == hgwbeta ) then
+  set centralDb=hgcentralbeta
+else
+  echo "\n  error.  Unknown host '$host'.  Can only be run from hgwdev or hgwbeta."
  exit 1
 endif
 
 hgsql -t -e "SELECT name, organism $date FROM dbDb WHERE NAME LIKE '$db%' \
-  ORDER BY name" hgcentraltest  | tail -n+3
+  ORDER BY name" $centralDb  | tail -n+3
 
 exit 0