summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2002-03-24 14:06:22 +0000
committerhubertf <hubertf@pkgsrc.org>2002-03-24 14:06:22 +0000
commit7621c45c78e63d9d721341964fd881d003ed84de (patch)
tree51fc78ddddf6813460a49d838728ede4cb66f27b /mk
parent0890bdc2cce7a1c89fbea06d878c91652f9df845 (diff)
downloadpkgsrc-7621c45c78e63d9d721341964fd881d003ed84de.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.mk22
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