[Swift-commit] r2061 - in log-processing: . bin
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Sun Jun 15 07:16:26 CDT 2008
Author: benc
Date: 2008-06-15 07:16:25 -0500 (Sun, 15 Jun 2008)
New Revision: 2061
Added:
log-processing/bin/
log-processing/bin/swift-plot-log
Log:
command to generate webpage for specified log
Added: log-processing/bin/swift-plot-log
===================================================================
--- log-processing/bin/swift-plot-log (rev 0)
+++ log-processing/bin/swift-plot-log 2008-06-15 12:16:25 UTC (rev 2061)
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+# $1 should be the pathname of the log file to plot
+
+LOG_CODE_HOME="`dirname $0`/../"
+
+FC="${1:0:1}"
+
+if [ "$FC" = "/" ]; then # absolute path
+ LOG_FILE_PATH=$1
+else
+ LOG_FILE_PATH="`pwd`/$1"
+fi
+
+LOG_DIRECTORY=`dirname $LOG_FILE_PATH`
+
+LOG_FILE_BASE=`basename $LOG_FILE_PATH .log`
+
+echo Log file path is $LOG_FILE_PATH
+echo Log is in directory $LOG_DIRECTORY
+echo Log basename is $LOG_FILE_BASE
+
+
+cd $LOG_CODE_HOME
+
+make SDL=$LOG_FILE_BASE LOG=$LOG_FILE_PATH clean webpage distributable distribute
+
+mv report-$LOG_FILE_BASE $LOG_DIRECTORY/
Property changes on: log-processing/bin/swift-plot-log
___________________________________________________________________
Name: svn:executable
+ *
More information about the Swift-commit
mailing list