[Swift-commit] r7371 - trunk/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Wed Dec 4 10:30:38 CST 2013


Author: davidk
Date: 2013-12-04 10:30:38 -0600 (Wed, 04 Dec 2013)
New Revision: 7371

Modified:
   trunk/bin/swift
   trunk/bin/swiftrun
Log:
Save restart log in run directory


Modified: trunk/bin/swift
===================================================================
--- trunk/bin/swift	2013-12-04 16:01:43 UTC (rev 7370)
+++ trunk/bin/swift	2013-12-04 16:30:38 UTC (rev 7371)
@@ -155,7 +155,7 @@
    CMDLINE="$( swiftrun $CMDLINE )"
    for cmd in $CMDLINE
    do
-      if [[ "$cmd" == *-Dscript.dir* ]]; then
+      if [[ "$cmd" == *-Dscript.dir* ]] || [[ "$cmd" == *-Drestart.log.name* ]]; then
          OPTIONS="$OPTIONS $cmd"
          CMDLINE=$( echo $CMDLINE | sed s@$cmd@@g )
       elif [[ "$cmd" == *--SWIFTRUNQUIT* ]]; then

Modified: trunk/bin/swiftrun
===================================================================
--- trunk/bin/swiftrun	2013-12-04 16:01:43 UTC (rev 7370)
+++ trunk/bin/swiftrun	2013-12-04 16:30:38 UTC (rev 7371)
@@ -333,6 +333,7 @@
 $run_directory = getcwd() . "/" . sprintf "run%03s", $run_number;
 mkdir($run_directory) || die "Unable to create run directory $run_directory\n";
 @new_swift_args = ("-Dscript.dir=" . $run_directory . "/scripts");
+push(@new_swift_args, "-Drestart.log.name=" . $run_directory . "/restart.log");
 
 # Write swift configuration files
 &write_sites("sites.xml") if defined( $option_siteslist ) || defined($properties{site});




More information about the Swift-commit mailing list