[Swift-commit] r7299 - in SwiftApps/swiftrun-demo: . 03-no-site-definition

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Mon Nov 18 16:37:24 CST 2013


Author: davidk
Date: 2013-11-18 16:37:24 -0600 (Mon, 18 Nov 2013)
New Revision: 7299

Added:
   SwiftApps/swiftrun-demo/03-no-site-definition/
   SwiftApps/swiftrun-demo/03-no-site-definition/README
   SwiftApps/swiftrun-demo/03-no-site-definition/catsn.swift
   SwiftApps/swiftrun-demo/03-no-site-definition/data.txt
   SwiftApps/swiftrun-demo/03-no-site-definition/swift.properties
Log:
Simple example of selecting sites to run on within swift.properties, using templates, and not specifying apps


Added: SwiftApps/swiftrun-demo/03-no-site-definition/README
===================================================================
--- SwiftApps/swiftrun-demo/03-no-site-definition/README	                        (rev 0)
+++ SwiftApps/swiftrun-demo/03-no-site-definition/README	2013-11-18 22:37:24 UTC (rev 7299)
@@ -0,0 +1,12 @@
+Run "module load swift-conf". This step will be eliminated when 0.95 is released, and loaded as a module dependency.
+
+This configuration shows how to select sites from within swift.properties. The swift.properties setting is:
+
+site=sandyb
+
+The definition of sandyb is picked up from the swift-conf module. Since there are no apps defined, PATH will be searched.
+
+To run:
+
+$ swift hostsn.swift
+ 

Added: SwiftApps/swiftrun-demo/03-no-site-definition/catsn.swift
===================================================================
--- SwiftApps/swiftrun-demo/03-no-site-definition/catsn.swift	                        (rev 0)
+++ SwiftApps/swiftrun-demo/03-no-site-definition/catsn.swift	2013-11-18 22:37:24 UTC (rev 7299)
@@ -0,0 +1,13 @@
+type file;
+
+app (file o) cat (file i)
+{
+  cat @i stdout=@o;
+}
+
+file out[]<simple_mapper; location="output", prefix="catsn.",suffix=".out">;
+
+foreach j in [1:toInt(arg("n","100"))] {
+  file data <"data.txt">;
+  out[j] = cat(data);
+}

Added: SwiftApps/swiftrun-demo/03-no-site-definition/data.txt
===================================================================
--- SwiftApps/swiftrun-demo/03-no-site-definition/data.txt	                        (rev 0)
+++ SwiftApps/swiftrun-demo/03-no-site-definition/data.txt	2013-11-18 22:37:24 UTC (rev 7299)
@@ -0,0 +1 @@
+fjdlksafjlsd

Added: SwiftApps/swiftrun-demo/03-no-site-definition/swift.properties
===================================================================
--- SwiftApps/swiftrun-demo/03-no-site-definition/swift.properties	                        (rev 0)
+++ SwiftApps/swiftrun-demo/03-no-site-definition/swift.properties	2013-11-18 22:37:24 UTC (rev 7299)
@@ -0,0 +1 @@
+site=sandyb




More information about the Swift-commit mailing list