src/utils/qa/checkMachineName.csh 1.5

1.5 2009/04/11 00:37:01 rhead
Sourced new qaConfig file at the top. Changed -h hgwbeta lines to look for sql host stored in a variable, specified in the new qaConfig file.
Index: src/utils/qa/checkMachineName.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/checkMachineName.csh,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 1000000 -r1.4 -r1.5
--- src/utils/qa/checkMachineName.csh	14 Feb 2008 17:52:00 -0000	1.4
+++ src/utils/qa/checkMachineName.csh	11 Apr 2009 00:37:01 -0000	1.5
@@ -1,50 +1,51 @@
 #!/bin/tcsh
+source `which qaConfig.csh`
 
 
 #######################
 #
 #  01-07-2005
 #  checks if machine name is legitimate.
 #  gets the names of all databases that contain a given table
 #  
 #  Robert Kuhn
 # 
 #######################
 
 if ($#argv < 1 || $#argv > 3) then
  echo ""
  echo "  checks if machine names are legitimate."
  echo "    no output if machine is ok."
  echo
  echo "    usage: machinename [machine2] [machine3]"
  echo ""
  exit 1
 endif
 
 set allMachines=" hgwdev hgwbeta hgw1 hgw2 hgw3 hgw4 hgw5 hgw6 hgw7 hgw8 "
 
 set mach1 = $argv[1]
 echo $allMachines | grep -w "$mach1" > /dev/null
 if ($status) then
   echo "\n $mach1 is not a valid machine.\n"
   exit 1
 endif
 
 if ($#argv > 1) then
   set mach2 = $argv[2]
   echo $allMachines | grep -w "$mach2" > /dev/null
   if ($status) then
     echo "\n $mach2 is not a valid machine.\n"
     exit 1
   endif
 endif
 
 if ($#argv == 3) then
   set mach3 = $argv[3]
   echo $allMachines | grep -w "$mach3" > /dev/null
   if ($status) then
     echo "\n $mach3 is not a valid machine.\n"
     exit 1
   endif
 endif