summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/modmisc.mk
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-03-15 13:08:45 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-03-15 13:08:45 -0500
commit09cff699a514e452eccc6420f1213967b767cb3e (patch)
treee9888cd55d03c840b20d080af4e472453c910835 /usr.bin/make/unit-tests/modmisc.mk
parentffeabdfb18fd21102159641f5258e8b1c473dec2 (diff)
downloaduserland-09cff699a514e452eccc6420f1213967b767cb3e.tar.gz
userland-09cff699a514e452eccc6420f1213967b767cb3e.tar.bz2
userland-09cff699a514e452eccc6420f1213967b767cb3e.tar.xz
userland-09cff699a514e452eccc6420f1213967b767cb3e.zip
rm bin/sh usr.bin/make: utilities provided by other packages
Diffstat (limited to 'usr.bin/make/unit-tests/modmisc.mk')
-rw-r--r--usr.bin/make/unit-tests/modmisc.mk38
1 files changed, 0 insertions, 38 deletions
diff --git a/usr.bin/make/unit-tests/modmisc.mk b/usr.bin/make/unit-tests/modmisc.mk
deleted file mode 100644
index a292b96..0000000
--- a/usr.bin/make/unit-tests/modmisc.mk
+++ /dev/null
@@ -1,38 +0,0 @@
-# $Id: modmisc.mk,v 1.1 2014/08/21 13:44:51 apb Exp $
-#
-# miscellaneous modifier tests
-
-# do not put any dirs in this list which exist on some
-# but not all target systems - an exists() check is below.
-path=:/bin:/tmp::/:.:/no/such/dir:.
-# 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'@
-# another mod - pretend it is more interesting
-MOD_HOMES=S,/home/,/homes/,
-MOD_OPT=@d@$${exists($$d):?$$d:$${d:S,/usr,/opt,}}@
-MOD_SEP=S,:, ,g
-
-all: modvar modvarloop modsysv
-
-modsysv:
- @echo "The answer is ${libfoo.a:L:libfoo.a=42}"
-
-modvar:
- @echo "path='${path}'"
- @echo "path='${path:${MOD_NODOT}}'"
- @echo "path='${path:S,home,homes,:${MOD_NODOT}}'"
- @echo "path=${path:${MOD_NODOTX}:ts:}"
- @echo "path=${path:${MOD_HOMES}:${MOD_NODOTX}:ts:}"
-
-.for d in ${path:${MOD_SEP}:N.} /usr/xbin
-path_$d?= ${d:${MOD_OPT}:${MOD_HOMES}}/
-paths+= ${d:${MOD_OPT}:${MOD_HOMES}}
-.endfor
-
-modvarloop:
- @echo "path_/usr/xbin=${path_/usr/xbin}"
- @echo "paths=${paths}"
- @echo "PATHS=${paths:tu}"