ruby-changes:65800
From: Nobuyoshi <ko1@a...>
Date: Tue, 6 Apr 2021 09:34:43 +0900 (JST)
Subject: [ruby-changes:65800] d235dd4461 (master): update-deps: prepare to run if not yet done
https://git.ruby-lang.org/ruby.git/commit/?id=d235dd4461 From d235dd446175ab15b16644ba50a705e24ed4faf5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 6 Apr 2021 09:33:11 +0900 Subject: update-deps: prepare to run if not yet done --- tool/update-deps | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tool/update-deps b/tool/update-deps index 12ae0f6..2348b36 100755 --- a/tool/update-deps +++ b/tool/update-deps @@ -528,7 +528,20 @@ def compare_deps(make_deps, cc_deps, out=$stdout) https://github.com/ruby/ruby/blob/trunk/tool/update-deps#L528 } end +def prepare_build + unless File.exist?("Makefile") + if File.exist?("autogen.sh") + system("./autogen.sh") + elsif !File.exist?("configure") + system("autoreconf", "-i", "-s") + end + system("./configure", "-q", "--enable-load-relative", "--prefix=/.", + "--disable-install-doc", "debugflags=-save-temps=obj -g") + end +end + def main_show(out=$stdout) + prepare_build make_deps, cc_deps = detect_dependencies(out) compare_deps(make_deps, cc_deps, out) end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/