summaryrefslogtreecommitdiff
path: root/lang/ruby-base
diff options
context:
space:
mode:
authortaca <taca>2002-02-01 13:16:39 +0000
committertaca <taca>2002-02-01 13:16:39 +0000
commitbfc47af104681bbedfe07b30de409a4a1640cd4c (patch)
treec54f0727f89ed9cb0491e32883eb8db2c64972a6 /lang/ruby-base
parent956745d3e686418db1d2df6d22d6619344020b06 (diff)
downloadpkgsrc-bfc47af104681bbedfe07b30de409a4a1640cd4c.tar.gz
Don't replace first line only when processing "#!".
Diffstat (limited to 'lang/ruby-base')
-rw-r--r--lang/ruby-base/Makefile.common6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/ruby-base/Makefile.common b/lang/ruby-base/Makefile.common
index d87b6cdcc39..16fc03b523e 100644
--- a/lang/ruby-base/Makefile.common
+++ b/lang/ruby-base/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.5 2002/01/22 17:05:20 taca Exp $
+# $NetBSD: Makefile.common,v 1.6 2002/02/01 13:16:39 taca Exp $
# FreeBSD: ports/Mk/bsd.ruby.mk,v 1.11 2000/11/16 17:59:40 knu Exp
# Makefile.common: ruby common makefile, based on FreeBSD's bsd.ruby.mk.
@@ -133,8 +133,8 @@ replace-ruby:
*) f=${WRKSRC}/$${s};; \
esac; \
${ECHO_MSG} "===> Fixing the #! line of $${s}"; \
- ${SED} -e 's| *[a-z0-9_/\.-][a-z0-9_/\.-]*/env *||g' \
- -e 's| *[a-z0-9_/\.-]*ruby|${RUBY}|' $$f > $$f.tmp; \
+ ${SED} -e '1s| *[a-z0-9_/\.-][a-z0-9_/\.-]*/env *||g' \
+ -e '1s| *[a-z0-9_/\.-]*ruby|${RUBY}|' $$f > $$f.tmp; \
if ${CMP} -s $$f $$f.tmp; then \
${RM} $$f.tmp; \
else \