diff options
| author | sjg <sjg@NetBSD.org> | 2006-02-26 21:43:00 +0000 |
|---|---|---|
| committer | sjg <sjg@NetBSD.org> | 2006-02-26 21:43:00 +0000 |
| commit | 2bc18a45e643a49fdcdaf21e683923a371bc0c44 (patch) | |
| tree | 3ad001c3a0cf4b0436b6e08c6e0d22347261a227 /usr.bin/make/unit-tests/modmisc | |
| parent | 016de84c5ba7857dd70c285a9dcec8927bdb75ab (diff) | |
Update man page and add test case for specifying modifiers via variable.
Also allow said variable to appear anywhere in the modifier list.
Diffstat (limited to 'usr.bin/make/unit-tests/modmisc')
| -rw-r--r-- | usr.bin/make/unit-tests/modmisc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.bin/make/unit-tests/modmisc b/usr.bin/make/unit-tests/modmisc new file mode 100644 index 00000000000..3975ad3fa4b --- /dev/null +++ b/usr.bin/make/unit-tests/modmisc @@ -0,0 +1,18 @@ +# $Id: modmisc,v 1.1 2006/02/26 21:43:01 sjg Exp $ +# +# miscelaneous modifier tests + +path=:/bin:/usr/bin::/sbin:/usr/sbin:.:/home/user/bin:./bin:. +# strip cwd from path. +MOD_NODOT=S/:/ /g:N.:ts: +# and decorate, note that $'s need to be doubled. Also note that +# the modifier_variable can be used with other modifiers. +MOD_NODOTX=S/:/ /g:N.:@d@'$$d'@ + +all: modvar + +modvar: + @echo "path='${path}'" + @echo "path='${path:${MOD_NODOT}}'" + @echo "path='${path:S,home,homes,:${MOD_NODOT}}'" + @echo "path=${path:${MOD_NODOTX}:ts:}" |
