diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-10-31 18:05:48 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-10-31 18:05:48 +0000 |
commit | 33f6d98857ac9be48a875aef017d51051bb33f60 (patch) | |
tree | b02ee93253bfcd980252f655deb9d1d4ce3097ab | |
parent | 531a09f3d5ba0f0fbed1ab4523c8ca958fcdba5a (diff) | |
download | pkgsrc-33f6d98857ac9be48a875aef017d51051bb33f60.tar.gz |
Make REPLACE_PERL work -- recent "-e s,/bin/perl,${PERL5}" addition broke it.
Now the sed command is "s,#!.*/bin/perl,#!${PERL5},"
-rw-r--r-- | mk/bsd.pkg.mk | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 815df7c8580..438d0b8b0dd 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.839 2001/10/30 13:53:15 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.840 2001/10/31 18:05:48 zuntum Exp $ # # This file is in the public domain. # @@ -1469,10 +1469,7 @@ do-patch: uptodate-digest . if defined(REPLACE_PERL) . for f in ${REPLACE_PERL} ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; if [ -f ${f} ]; then \ - ${SED} -e "s,/bin/perl,${PERL5},g" \ - -e "s,/usr/bin/perl,${PERL5},g" \ - -e "s,/usr/local/bin/perl,${PERL5},g" \ - -e "s,/usr/pkg/bin/perl,${PERL5},g" \ + ${SED} "s,#!.*/bin/perl,#!${PERL5}," \ ${f} > ${f}.new; \ if [ -x ${f} ]; then \ ${CHMOD} a+x ${f}.new; \ |