src/utils/qa/compareTrackDbFast.csh 1.9
1.9 2009/06/09 00:20:15 rhead
Added onintr to remove files when script has been killed.
Index: src/utils/qa/compareTrackDbFast.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/compareTrackDbFast.csh,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/utils/qa/compareTrackDbFast.csh 5 May 2009 23:13:25 -0000 1.8
+++ src/utils/qa/compareTrackDbFast.csh 9 Jun 2009 00:20:15 -0000 1.9
@@ -1,7 +1,9 @@
#!/bin/tcsh
source `which qaConfig.csh`
+onintr cleanup
+
if ($#argv < 3 || $#argv > 4) then
echo ""
echo " compares trackDb on two machines."
echo " optionally compares another field instead of tableName."
@@ -136,8 +138,8 @@
else
echo "\n$db.$table.$field : No differences between $machine1 and $machine2 \n"
endif
-# clean up
+cleanup:
rm -f $machine1.$db.$table
rm -f $machine2.$db.$table
rm -f $db.temp