summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-08-01 21:32:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2025-08-18 10:25:14 +0900
commitddbfe353c2100400f60d6bd012cc175ca4b518ab (patch)
tree710d3f6312e97ab7c3148fc5ce9afe03aab8175d
parent449cc2501ec453c5d1511e7e5353d55793cad5ab (diff)
Use autogen.sh if exists
-rwxr-xr-xtool/make-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 7a9797d13d..7d4fce4f15 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -430,7 +430,7 @@ def package(vcs, rev, destdir, tmp = nil)
puts "cross.rb:", File.read("cross.rb").gsub(/^/, "> "), "" if $VERBOSE
unless File.exist?("configure")
print "creating configure..."
- unless system([ENV["AUTOCONF"]]*2)
+ unless system(File.exist?(gen = "./autogen.sh") ? gen : [ENV["AUTOCONF"]]*2)
puts $colorize.fail(" failed")
return
end