[Swift-commit] r2335 - log-processing/bin

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Nov 14 13:26:11 CST 2008


Author: benc
Date: 2008-11-14 13:26:10 -0600 (Fri, 14 Nov 2008)
New Revision: 2335

Modified:
   log-processing/bin/swift-plot-log
Log:
fix working directory creation

Modified: log-processing/bin/swift-plot-log
===================================================================
--- log-processing/bin/swift-plot-log	2008-11-12 19:43:09 UTC (rev 2334)
+++ log-processing/bin/swift-plot-log	2008-11-14 19:26:10 UTC (rev 2335)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 ORIGDIR=$(pwd)
-WORKINGDIR=$(mktemp /tmp/swift-plot-log-XXXXXXXXXXXXXXXX)
+WORKINGDIR=$(mktemp -d /tmp/swift-plot-log-XXXXXXXXXXXXXXXX)
 
 
 # $1 should be the pathname of the log file to plot
@@ -28,6 +28,7 @@
 echo Log basename is $LOG_FILE_BASE
 
 cd $WORKINGDIR
+echo Now in directory $(pwd)
 
 MAKEENV="-f ${LOG_CODE_HOME}/makefile -I ${LOG_CODE_HOME}"
 MAKETARGETS=""
@@ -39,8 +40,9 @@
  MAKETARGETS="webpage.info"
 fi
 
-make $MAKEENV SDL=${ORIGDIR}/report-${LOG_FILE_BASE} LOG=$LOG_FILE_PATH clean webpage.kara webpage.weights karatasks.JOB_SUBMISSION.Queue.transitions karatasks.JOB_SUBMISSION.Queue.event  $MAKETARGETS webpage distribute
+make $MAKEENV SDL=${ORIGDIR}/report-${LOG_FILE_BASE} LOG=$LOG_FILE_PATH clean webpage.kara webpage.weights karatasks.JOB_SUBMISSION.Queue.transitions karatasks.JOB_SUBMISSION.Queue.event karatasks.JOB_SUBMISSION.eip  $MAKETARGETS webpage distribute
 
 # mv report-$LOG_FILE_BASE $LOG_DIRECTORY/
 
-rm -r $WORKINGDIR
+# rm -r $WORKINGDIR
+echo not removing $WORKINGDIR




More information about the Swift-commit mailing list