[Swift-commit] r5661 - SwiftApps/SciColSim/bin

jonmon at ci.uchicago.edu jonmon at ci.uchicago.edu
Tue Feb 21 11:15:37 CST 2012


Author: jonmon
Date: 2012-02-21 11:15:37 -0600 (Tue, 21 Feb 2012)
New Revision: 5661

Modified:
   SwiftApps/SciColSim/bin/convertbest.sh
Log:
use dirname of $0 in convertbest.sh to find the directory for showbest.sh



Modified: SwiftApps/SciColSim/bin/convertbest.sh
===================================================================
--- SwiftApps/SciColSim/bin/convertbest.sh	2012-02-21 00:26:50 UTC (rev 5660)
+++ SwiftApps/SciColSim/bin/convertbest.sh	2012-02-21 17:15:37 UTC (rev 5661)
@@ -1,6 +1,7 @@
 #! /bin/sh
 
+dir=$(dirname $0)
 for f in best*.txt; do
   out=$(basename $f .txt).fmt
-  ../showbest.sh <$f >$out
+  $dir/showbest.sh <$f >$out
 done




More information about the Swift-commit mailing list