[Swift-commit] r7624 - SwiftApps/swift-galaxy/swift

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Thu Feb 27 20:44:02 CST 2014


Author: ketan
Date: 2014-02-27 20:44:02 -0600 (Thu, 27 Feb 2014)
New Revision: 7624

Modified:
   SwiftApps/swift-galaxy/swift/swiftforeachlist.sh
   SwiftApps/swift-galaxy/swift/swiftforeachrange.sh
Log:
fix filemapper issue

Modified: SwiftApps/swift-galaxy/swift/swiftforeachlist.sh
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeachlist.sh	2014-02-28 02:07:23 UTC (rev 7623)
+++ SwiftApps/swift-galaxy/swift/swiftforeachlist.sh	2014-02-28 02:44:02 UTC (rev 7624)
@@ -39,7 +39,7 @@
 #workout the array only if user adds args else make it blank
 if [ ${#fileargs[@]} -gt 0 ] ; then
     tmp=$(printf -- '%s,' "${fileargs[@]}")
-    filearrayexpr='file fileargs[]=['$(echo $tmp | sed s/,$//)'];';
+    filearrayexpr='file fileargs[] <fixed_array_mapper; files="'$(echo $tmp | sed -e 's/,$//' -e 's/\"//g')'">;';
 else
     filearrayexpr='file fileargs[];'
 fi

Modified: SwiftApps/swift-galaxy/swift/swiftforeachrange.sh
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeachrange.sh	2014-02-28 02:07:23 UTC (rev 7623)
+++ SwiftApps/swift-galaxy/swift/swiftforeachrange.sh	2014-02-28 02:44:02 UTC (rev 7624)
@@ -44,7 +44,8 @@
 #workout the array only if user adds file args else make it blank
 if [ ${#fileargs[@]} -gt 0 ] ; then
     tmp=$(printf -- '%s,' "${fileargs[@]}")
-    filearrayexpr='file fileargs[]=['$(echo $tmp | sed s/,$//)'];';
+    #file fileargs[] <fixed_array_mapper; files="/Users/ketan/galaxy-dist/database/files/000/dataset_308.dat, /Users/ketan/galaxy-dist/database/files/000/dataset_307.dat">;
+    filearrayexpr='file fileargs[] <fixed_array_mapper; files="'$(echo $tmp | sed -e 's/,$//' -e 's/\"//g')'">;';
 else
     filearrayexpr='file fileargs[];'
 fi




More information about the Swift-commit mailing list