src/utils/qa/checkAllStaticLinks.csh 1.10

1.10 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/checkAllStaticLinks.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/checkAllStaticLinks.csh,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -B -U 1000000 -r1.9 -r1.10
--- src/utils/qa/checkAllStaticLinks.csh	13 Oct 2008 23:08:06 -0000	1.9
+++ src/utils/qa/checkAllStaticLinks.csh	11 Apr 2009 00:37:01 -0000	1.10
@@ -1,66 +1,67 @@
 #!/bin/tcsh
+source `which qaConfig.csh`
 
 ###############################################
 #  05-12-04  Robert Kuhn
 # 
 #  checks all the static links in htdocs tree.
 #  needs a way to re-check bad links. 
 # 
 ###############################################
 
 set filePath=""
 set yymmdd="today"
 set file=""
 set currDir=$cwd
 
 
 
 if ( "$HOST" != "hgwdev" ) then
  echo "\n error: you must run this script on dev!\n"
  exit 1
 endif
 
 
 
 if ($#argv == 0 || $#argv > 2) then
   # wrong number of command line args
   echo
   echo "  checks all the static links in htdocs tree."
   echo "  uses directory on beta."
   echo "  excludes files listed in /cluster/bin/scripts/linkCheckExclude"
   echo
   echo '    usage: <file of paths | all> [yymmdd]'
   echo '       "all" uses /cluster/bin/scripts/staticpaths'
   echo '        yymmdd: any dateString for output files. defaults to "today"'
   echo
   exit
 else
   if ($argv[1] == "all") then
     # use default list of paths
     set pathfile="/cluster/bin/scripts/staticpaths"
   else
     set pathfile=$argv[1]
     file $pathfile | grep -q "ASCII text"
     if ( $status ) then
       echo "\n file of paths $pathfile does not exist\n"
       exit 1
     endif
   endif
   if ($#argv == 2) then
     set yymmdd=$argv[2]
   endif
 endif
 
 cp /cluster/bin/scripts/linkCheckExclude excludeList >& /dev/null
 if ( $status ) then
   echo "\nexclude file does not exist\n" 
   exit 1
 endif
 foreach filePath (`cat $pathfile`)
   echo "filePath: $filePath"
   checkStaticLinks.csh $filePath $yymmdd excludeList
   if ( $status ) then
     echo "\nexclude file does not exist\n" 
     exit 1
   endif
 end