1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Dump cross.rb only when verbose [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-09-07 14:41:37 +09:00
parent 1f91dcdab3
commit 35c493ecf5
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 4 additions and 3 deletions

View file

@ -1333,7 +1333,7 @@ lldb-ruby: $(PROGRAM) PHONY
DISTPKGS = gzip,zip,all
PKGSDIR = tmp
dist:
$(BASERUBY) $(tooldir)/make-snapshot \
$(BASERUBY) $(V0:1=-v) $(tooldir)/make-snapshot \
-srcdir=$(srcdir) -packages=$(DISTPKGS) \
-unicode-version=$(UNICODE_VERSION) \
$(DISTOPTS) $(PKGSDIR) $(RELNAME)

View file

@ -22,6 +22,7 @@ $keep_temp ||= nil
$patch_file ||= nil
$packages ||= nil
$digests ||= nil
$no7z ||= nil
$tooldir = File.expand_path("..", __FILE__)
$unicode_version = nil if ($unicode_version ||= nil) == ""
$colorize = Colorize.new
@ -146,7 +147,7 @@ unless destdir = ARGV.shift
end
revisions = ARGV.empty? ? [nil] : ARGV
if $exported
if defined?($exported)
abort "#{File.basename $0}: -exported option is deprecated; use -srcdir instead"
end
@ -416,7 +417,7 @@ def package(vcs, rev, destdir, tmp = nil)
f.puts "Object.__send__(:remove_const, :RUBY_VERSION)"
f.puts "RUBY_VERSION='#{version}'"
end
warn "cross.rb:", File.read("cross.rb").gsub(/^/, "> "), ""
puts "cross.rb:", File.read("cross.rb").gsub(/^/, "> "), "" if $VERBOSE
unless File.exist?("configure")
print "creating configure..."
unless system([ENV["AUTOCONF"]]*2)