baca35f4e0
for substitution patterns. This (perhaps coupled with the new handling of .for variables in ${:U<value>...) caused interesting results for lines like: .for file in ${LIST} for-subst: ${file:S;^;${here}/;g} add a unit-test to keep an eye on this.
11 lines
231 B
Plaintext
11 lines
231 B
Plaintext
# $Id: forsubst,v 1.1 2009/10/07 16:40:30 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
|