[Swift-commit] r4344 - trunk/libexec/log-processing

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Tue Apr 12 14:20:10 CDT 2011


Author: wozniak
Date: 2011-04-12 14:20:10 -0500 (Tue, 12 Apr 2011)
New Revision: 4344

Modified:
   trunk/libexec/log-processing/extract-start-time
Log:
Allow LOG to be given on the command line


Modified: trunk/libexec/log-processing/extract-start-time
===================================================================
--- trunk/libexec/log-processing/extract-start-time	2011-04-12 19:19:50 UTC (rev 4343)
+++ trunk/libexec/log-processing/extract-start-time	2011-04-12 19:20:10 UTC (rev 4344)
@@ -4,8 +4,15 @@
 
 rm -f tmp-extract-starttime2
 
+if [[ $LOG == "" ]] ; then 
+  LOG=$1
+fi
+
 if [ "X$LOG" != "X" ] ; then
   head $LOG | iso-to-secs >> tmp-extract-starttime2
+else 
+  echo "No LOG given!"
+  exit 1
 fi
 
 # for e in *.event ; do




More information about the Swift-commit mailing list