ruby-changes:73735
From: Nobuyoshi <ko1@a...>
Date: Mon, 26 Sep 2022 13:03:36 +0900 (JST)
Subject: [ruby-changes:73735] ecffc6a203 (master): Generate the revision.h before Makefile
https://git.ruby-lang.org/ruby.git/commit/?id=ecffc6a203 From ecffc6a203822a828d00afece9c9cd782ff60a66 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 26 Sep 2022 10:20:24 +0900 Subject: Generate the revision.h before Makefile Except for GNU make which updates makefiles automatically, repeating configure in the same directory causes `make` to stop whenever pulled a new commit. This is unexpected in CIs. --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 55288b92c0..206470ae0f 100644 --- a/configure.ac +++ b/configure.ac @@ -4368,6 +4368,14 @@ AC_SUBST(XCC_WRAPPER) https://github.com/ruby/ruby/blob/trunk/configure.ac#L4368 AS_CASE([" $CPP "], [*" $CC "*], [CPP=`echo " $CPP " | sed "s| $CC |"' $(CC) |;s/^ *//;s/ *$//'`]) +AS_IF([test ! -f "$srcdir/revision.h"], [ + AS_IF([test "x$HAVE_BASERUBY" = xyes], [ + ${BASERUBY} -C "$srcdir" tool/file2lastrev.rb -q --revision.h > "$srcdir/revision.h" + ], [ + touch "$srcdir/revision.h" + ]) +]) + AS_IF([test x"$firstmf" != x], [ AC_CONFIG_FILES($firstmf:$firsttmpl, [], [firstmf="$firstmf" firsttmpl="$firsttmpl"]) ]) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/