src/utils/qa/checkWigFiles.csh 1.2

1.2 2009/04/29 17:23:56 ann
a few tweaks based on Bob's code review feedback (thanks Bob)
Index: src/utils/qa/checkWigFiles.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/checkWigFiles.csh,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 4 -r1.1 -r1.2
--- src/utils/qa/checkWigFiles.csh	23 Apr 2009 23:39:28 -0000	1.1
+++ src/utils/qa/checkWigFiles.csh	29 Apr 2009 17:23:56 -0000	1.2
@@ -35,20 +35,24 @@
 else
  set db=$argv[1]
  set table=$argv[2]
  set file=$argv[3]
- if ( 4 == $#argv ) then
+ if ( "rm" == $argv[4] ) then
   set remove="T"
+ else
+  echo "\nERROR: fourth argument must be 'rm'\n"
+  exit 1
  endif
 endif
 
 if ( "$HOST" != "hgwdev" ) then
- echo "\nERROR: this script must be run from hgwdev."
+ echo "\nERROR: this script must be run from hgwdev.\n"
  exit 1
 endif
 
 if ( ! -e $file ) then
- echo " \nERROR: sorry I can't find the original wig file here: ~$file\n"
+ echo "\nERROR: sorry I can't find the original wig file here:"
+ echo " /usr/local/apahce/htdocs$file\n"
  exit 1
 endif
 
 # convert Wiggle ascii data file to binary format