Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests make(1): add another test for the Sy...
details: https://anonhg.NetBSD.org/src/rev/7e07fddea8c7
branches: trunk
changeset: 973546:7e07fddea8c7
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Jul 03 19:29:25 2020 +0000
description:
make(1): add another test for the SysV :%=% modifier
diffstat:
usr.bin/make/unit-tests/sysv.exp | 1 +
usr.bin/make/unit-tests/sysv.mk | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r a9a1038c4cd1 -r 7e07fddea8c7 usr.bin/make/unit-tests/sysv.exp
--- a/usr.bin/make/unit-tests/sysv.exp Fri Jul 03 19:22:38 2020 +0000
+++ b/usr.bin/make/unit-tests/sysv.exp Fri Jul 03 19:29:25 2020 +0000
@@ -12,4 +12,5 @@
asam.c
a.c.c
+ax:Q b c d eb
exit status 0
diff -r a9a1038c4cd1 -r 7e07fddea8c7 usr.bin/make/unit-tests/sysv.mk
--- a/usr.bin/make/unit-tests/sysv.mk Fri Jul 03 19:22:38 2020 +0000
+++ b/usr.bin/make/unit-tests/sysv.mk Fri Jul 03 19:29:25 2020 +0000
@@ -1,4 +1,4 @@
-# $Id: sysv.mk,v 1.4 2020/05/06 02:30:10 christos Exp $
+# $Id: sysv.mk,v 1.5 2020/07/03 19:29:25 rillig Exp $
FOO ?=
FOOBAR = ${FOO:=bar}
@@ -11,7 +11,7 @@
SUN = the Sun
# we expect nothing when FOO is empty
-all: foo fun sam bla
+all: foo fun sam bla words
foo:
@echo FOOBAR = ${FOOBAR}
@@ -41,3 +41,8 @@
bla:
@echo $(BLA:%=foo/%x)
+
+# The :Q looks like a modifier but isn't.
+# It is part of the replacement string.
+words:
+ @echo a${a b c d e:L:%a=x:Q}b
Home |
Main Index |
Thread Index |
Old Index