NetBSD/usr.bin/make/unit-tests/modmisc

19 lines
519 B
Plaintext
Raw Normal View History

2006-02-27 01:40:50 +03:00
# $Id: modmisc,v 1.3 2006/02/26 22:40:50 wiz Exp $
#
2006-02-27 01:40:50 +03:00
# miscellaneous modifier tests
path=:/bin:/usr/bin::/sbin:/usr/sbin:.:/home/user/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:}"