Don't replace first line only when processing "#!".

This commit is contained in:
taca 2002-02-01 13:16:39 +00:00
parent 525ad4ad6a
commit 974140994b

View file

@ -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 \