summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-05-15 01:17:05 +0000
committerjlam <jlam@pkgsrc.org>2005-05-15 01:17:05 +0000
commitfbb6e5dc719fb5d0a384dddcc708f75f68173f6f (patch)
treef4ba278d99bec5126cccb7a1c2a14652516a4366 /mk
parent9b481b9ce91046eabb62fd89e350cf2d91f3479b (diff)
downloadpkgsrc-fbb6e5dc719fb5d0a384dddcc708f75f68173f6f.tar.gz
Make implementation match documentation for when a wrapper is created and
when a symlink is created.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/bsd.tools.mk19
1 files changed, 11 insertions, 8 deletions
diff --git a/mk/tools/bsd.tools.mk b/mk/tools/bsd.tools.mk
index 79ce3932faa..b28127cf358 100644
--- a/mk/tools/bsd.tools.mk
+++ b/mk/tools/bsd.tools.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.tools.mk,v 1.20 2005/05/11 08:41:50 jlam Exp $
+# $NetBSD: bsd.tools.mk,v 1.21 2005/05/15 01:17:05 jlam Exp $
#
# This Makefile fragment creates tools under ${TOOLS_DIR} that are
# found before similarly-named tools in the system path.
@@ -144,14 +144,17 @@ ${TOOLS_CMD.${_t_}}:
if ${TEST} -n ${TOOLS_REAL_CMDLINE.${_t_}:Q}""; then \
create=wrapper; \
cmdline=${TOOLS_REAL_CMDLINE.${_t_}:Q}; \
- elif ${TEST} -n ${TOOLS_REAL_CMD.${_t_}:Q}"" -a \
- -z ${TOOLS_ARGS.${_t_}:Q}""; then \
- case ${TOOLS_REAL_CMD.${_t_}:Q}"" in \
- /*) create=symlink ;; \
- *) create=wrapper; \
+ elif ${TEST} -n ${TOOLS_REAL_CMD.${_t_}:Q}""; then \
+ if ${TEST} -n ${TOOLS_REAL_ARGS.${_t_}:Q}""; then \
+ create=wrapper; \
cmdline=${_TOOLS_REAL_CMDLINE_DFLT.${_t_}:Q}; \
- ;; \
- esac; \
+ else \
+ case ${TOOLS_REAL_CMD.${_t_}:Q}"" in \
+ /*) create=symlink ;; \
+ *) create=wrapper; \
+ cmdline=${_TOOLS_REAL_CMDLINE_DFLT.${_t_}:Q}; \
+ esac; \
+ fi; \
else \
create=symlink; \
fi; \