From 974140994b3a72a7427b0d2dce8a2ec0eed3cfd0 Mon Sep 17 00:00:00 2001 From: taca Date: Fri, 1 Feb 2002 13:16:39 +0000 Subject: [PATCH] Don't replace first line only when processing "#!". --- lang/ruby-base/Makefile.common | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/ruby-base/Makefile.common b/lang/ruby-base/Makefile.common index d87b6cdcc392..16fc03b523e3 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 \