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.
This commit is contained in:
agc 1998-01-23 09:47:57 +00:00
parent 5d06ceee39
commit 9896f91228
2 changed files with 6 additions and 4 deletions

View file

@ -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"; \

View file

@ -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"; \