diff options
author | taca <taca@pkgsrc.org> | 2002-02-01 13:16:39 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2002-02-01 13:16:39 +0000 |
commit | 974140994b3a72a7427b0d2dce8a2ec0eed3cfd0 (patch) | |
tree | c54f0727f89ed9cb0491e32883eb8db2c64972a6 /lang | |
parent | 525ad4ad6a2029d31a912986652d75af5ee1e3f5 (diff) | |
download | pkgsrc-974140994b3a72a7427b0d2dce8a2ec0eed3cfd0.tar.gz |
Don't replace first line only when processing "#!".
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby-base/Makefile.common | 6 |
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 \ |