summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-28 09:13:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-28 09:13:21 +0000
commitcb5c2f07f1fec26fea713286cdcd5813c9643b48 (patch)
tree3e2f5f380167519beb1654828be12a29c0933474 /lib
parent896039f94b869346832e8887e4e2919a37214280 (diff)
mkmf.rb: use echo if possible
* lib/mkmf.rb (create_makefile): use echo for simple contents. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 513dff3..5f549eb 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -2190,10 +2190,10 @@ RULES
if File.exist?(File.join(srcdir, target + '.def'))
deffile = "$(srcdir)/$(TARGET).def"
unless EXPORT_PREFIX.empty?
- makedef = %{-pe "$_.sub!(/^(?=\\w)/,'#{EXPORT_PREFIX}') unless 1../^EXPORTS$/i"}
+ makedef = %{$(RUBY) -pe "$$_.sub!(/^(?=\\w)/,'#{EXPORT_PREFIX}') unless 1../^EXPORTS$/i" #{deffile}}
end
else
- makedef = %{-e "puts 'EXPORTS', '$(TARGET_ENTRY)'"}
+ makedef = %{(echo EXPORTS && echo $(TARGET_ENTRY))}
end
if makedef
$cleanfiles << '$(DEFFILE)'
@@ -2411,7 +2411,7 @@ site-install-rb: install-rb
if makedef
mfile.print "$(DEFFILE): #{origdef}\n"
mfile.print "\t$(ECHO) generating $(@#{rsep})\n"
- mfile.print "\t$(Q) $(RUBY) #{makedef} #{origdef} > $@\n\n"
+ mfile.print "\t$(Q) #{makedef} > $@\n\n"
end
depend = File.join(srcdir, "depend")