about summary refs log tree commit diff
path: root/testpkgs/args
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-08-15T13·01+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-08-15T13·01+0000
commit96c7b98bf0f852d7afee9251c4ce9492310e6a87 (patch)
treee2fc32f5ce2371ae7fb5d58f9866afa67de48bf8 /testpkgs/args
parent555347744d116b0152a04d4fdb08258276d34199 (diff)
* Argument support in Fix. Arguments can be passed through the
  builder using the `args' binding:

  ("args", ["bla", True, IncludeFix("aterm/aterm.fix")])

  Note that packages can also be declared as inputs by specifying them
  in the argument list.

Diffstat (limited to 'testpkgs/args')
-rwxr-xr-xtestpkgs/args/args-build.sh11
-rw-r--r--testpkgs/args/args.fix7
2 files changed, 18 insertions, 0 deletions
diff --git a/testpkgs/args/args-build.sh b/testpkgs/args/args-build.sh
new file mode 100755
index 000000000000..1efcc17fedf3
--- /dev/null
+++ b/testpkgs/args/args-build.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+IFS=
+
+echo "printing list of args"
+
+for i in $@; do
+    echo "arg: $i"
+done
+
+touch $out
\ No newline at end of file
diff --git a/testpkgs/args/args.fix b/testpkgs/args/args.fix
new file mode 100644
index 000000000000..54a13ddba858
--- /dev/null
+++ b/testpkgs/args/args.fix
@@ -0,0 +1,7 @@
+Package(
+  [ ("name", "args")
+  , ("build", Relative("args/args-build.sh"))
+
+  , ("args", ["1", "2", "3", IncludeFix("slow2/slow.fix")])
+  ]
+)