diff options
author | minskim <minskim> | 2008-09-21 21:50:31 +0000 |
---|---|---|
committer | minskim <minskim> | 2008-09-21 21:50:31 +0000 |
commit | 5ca82ea26108310f71c397e17bd499405f45f792 (patch) | |
tree | b27290fb21b66e60925938ae75ab446166622232 /lang/ruby/replace.mk | |
parent | adf529eb305abcbb9be5e03518ed8fe7a1d98bb9 (diff) | |
download | pkgsrc-5ca82ea26108310f71c397e17bd499405f45f792.tar.gz |
Make sure the shebang line replacement for Ruby alters only a shebang line.
Previously, it altered lines that did not start with "#!". This, with
the recent change in misc/rubygems/rubygems 1.39, broke www/rails.
Diffstat (limited to 'lang/ruby/replace.mk')
-rw-r--r-- | lang/ruby/replace.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/ruby/replace.mk b/lang/ruby/replace.mk index 94889c40bbe..22960759db4 100644 --- a/lang/ruby/replace.mk +++ b/lang/ruby/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.10 2008/09/15 08:40:55 taca Exp $ +# $NetBSD: replace.mk,v 1.11 2008/09/21 21:50:31 minskim Exp $ # .if !defined(_RUBY_REPLACE_MK) @@ -46,8 +46,8 @@ replace-ruby-dirs: ${FIND} $$dirs \ -type f ${_REPLACE_RUBY_FIND_ARGS} -print | \ while read f; do \ - ${SED} -e '1s| *[a-z0-9_/\.-][a-z0-9_/\.-]*/env *||g' \ - -e '1s| *[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 \ |