summaryrefslogtreecommitdiff
path: root/unit-tests/forsubst
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/forsubst')
-rw-r--r--unit-tests/forsubst10
1 files changed, 10 insertions, 0 deletions
diff --git a/unit-tests/forsubst b/unit-tests/forsubst
new file mode 100644
index 0000000..d3a7de1
--- /dev/null
+++ b/unit-tests/forsubst
@@ -0,0 +1,10 @@
+# $Id: forsubst,v 1.1.1.1 2009/10/07 18:53:35 sjg Exp $
+
+all: for-subst
+
+here := ${.PARSEDIR}
+# this should not run foul of the parser
+.for file in ${.PARSEFILE}
+for-subst: ${file:S;^;${here}/;g}
+ @echo ".for with :S;... OK"
+.endfor