summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>1998-01-23 09:47:57 +0000
committeragc <agc>1998-01-23 09:47:57 +0000
commit564684a5c69afac5591c798c5948b2c2e2017d22 (patch)
treeca4ded4f19102ef4c1dcad6c5651e94f6ce0408d /mk
parent4a43781ab2b10051a28883c89833ad9b3371e46d (diff)
downloadpkgsrc-564684a5c69afac5591c798c5948b2c2e2017d22.tar.gz
In the shell script to find an executable upon which this package
depends, break out of the loop when you find one. Also print the name of the executable found.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk5
-rw-r--r--mk/bsd.port.mk5
2 files changed, 6 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index bcd362a169c..18b5dd8aac2 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $NetBSD: bsd.pkg.mk,v 1.33 1998/01/22 11:27:54 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.34 1998/01/23 09:47:57 agc Exp $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -1622,7 +1622,8 @@ _DEPENDS_USE: .USE
else \
for d in `echo $$PATH | tr ':' ' '`; do \
if [ -x $$d/$$prog ]; then \
- found=""; \
+ found="$$d/$$prog"; \
+ break; \
fi \
done; \
${ECHO_MSG} "===> ${PKGNAME} depends on executable: $$prog - $$found found"; \
diff --git a/mk/bsd.port.mk b/mk/bsd.port.mk
index 296f2ebcc7c..7c7eda9c735 100644
--- a/mk/bsd.port.mk
+++ b/mk/bsd.port.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $NetBSD: bsd.port.mk,v 1.33 1998/01/22 11:27:54 agc Exp $
+# $NetBSD: bsd.port.mk,v 1.34 1998/01/23 09:47:57 agc Exp $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -1622,7 +1622,8 @@ _DEPENDS_USE: .USE
else \
for d in `echo $$PATH | tr ':' ' '`; do \
if [ -x $$d/$$prog ]; then \
- found=""; \
+ found="$$d/$$prog"; \
+ break; \
fi \
done; \
${ECHO_MSG} "===> ${PKGNAME} depends on executable: $$prog - $$found found"; \