diff options
author | hubertf <hubertf> | 2002-03-24 14:06:22 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2002-03-24 14:06:22 +0000 |
commit | 00de3c4f1358e7c8bfe69f0253424321e6ba6707 (patch) | |
tree | 51fc78ddddf6813460a49d838728ede4cb66f27b /mk | |
parent | 651b0a96b941889ffa14abacd67f2379c807ac3f (diff) | |
download | pkgsrc-00de3c4f1358e7c8bfe69f0253424321e6ba6707.tar.gz |
Rewrite REPLACE_PERL as shell-loop, so one can use shell wildcards,e.g.
REPLACE_PERL= *.cgi *.perl *.pl
Code submitted by Amitai Schlair <schmonz@schmonz.com>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index bbd6a1686bc..1c6e1d3c054 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.952 2002/03/22 19:08:44 tron Exp $ +# $NetBSD: bsd.pkg.mk,v 1.953 2002/03/24 14:06:22 hubertf Exp $ # # This file is in the public domain. # @@ -1748,18 +1748,18 @@ do-patch: uptodate-digest _CONFIGURE_PREREQ+= replace-perl replace-perl: .if defined(REPLACE_PERL) -. for f in ${REPLACE_PERL} ${_PKG_SILENT}${_PKG_DEBUG} \ cd ${WRKSRC}; \ - if [ -f ${f} ]; then \ - ${SED} "s,#!.*/bin/perl,#!${PERL5}," \ - ${f} > ${f}.new; \ - if [ -x ${f} ]; then \ - ${CHMOD} a+x ${f}.new; \ - fi; \ - ${MV} -f ${f}.new ${f}; \ - fi -. endfor + for f in ${REPLACE_PERL}; do \ + if [ -f $${f} ]; then \ + ${SED} "s,#!.*/bin/perl,#!${PERL5}," \ + $${f} > $${f}.new; \ + if [ -x $${f} ]; then \ + ${CHMOD} a+x $${f}.new; \ + fi; \ + ${MV} -f $${f}.new $${f}; \ + fi; \ + done .else ${_PKG_SILENT}${_PKG_DEBUG}${TRUE} .endif |