[Swift-commit] r6383 - trunk/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Fri Mar 15 10:02:01 CDT 2013


Author: davidk
Date: 2013-03-15 10:02:00 -0500 (Fri, 15 Mar 2013)
New Revision: 6383

Modified:
   trunk/bin/swiftrun
Log:
Link input_files 


Modified: trunk/bin/swiftrun
===================================================================
--- trunk/bin/swiftrun	2013-03-14 21:23:48 UTC (rev 6382)
+++ trunk/bin/swiftrun	2013-03-15 15:02:00 UTC (rev 6383)
@@ -1,4 +1,4 @@
-#!/bin/bash -x
+#!/bin/bash 
 
 # Verify an argument is not null
 verify_not_null()
@@ -60,6 +60,14 @@
 rundir=$( echo run??? | sed -e 's/^.*run//' | awk '{ printf("run%03d\n", $1+1)}' )
 mkdir $rundir
 
+# Link input_files
+if [ -d "input_files" ]; then
+   for input_file in input_files/*
+   do
+      ln -s $PWD/$input_file $rundir
+   done
+fi
+
 # Swift script
 if [ -f "$script" ]; then 
    cp $script $rundir
@@ -77,13 +85,10 @@
 echo "<config>" > sites.xml
 for site in $SITES
 do
-   echo SITE IS $site
-   echo FILE IS ../conf/$site.cf
    # If config is not defined, but there is a config in conf/ that matches, use that
    if [ -z "$CONFIG" ] && [ -f "../conf/$site.cf" ]; then
       cp ../conf/$site.cf .
       config=$site.cf
-      echo config IS $config
    fi  
 
    if [ -f "$config" ]; then




More information about the Swift-commit mailing list