ruby-changes:73599
From: Takashi <ko1@a...>
Date: Sun, 18 Sep 2022 00:11:23 +0900 (JST)
Subject: [ruby-changes:73599] 67417e795a (master): Replace revision.tmp with the HAVE_BASERUBY trick
https://git.ruby-lang.org/ruby.git/commit/?id=67417e795a From 67417e795a3e5af8e64d3b3c3440ff5e7306707d Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 18 Sep 2022 00:09:41 +0900 Subject: Replace revision.tmp with the HAVE_BASERUBY trick but without relying on replacement. This seems to work on OpenBSD as well. --- common.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common.mk b/common.mk index 90d507806a..5f016d6fc3 100644 --- a/common.mk +++ b/common.mk @@ -1213,7 +1213,9 @@ $(BUILTIN_RB_INCS): $(top_srcdir)/tool/mk_builtin_loader.rb https://github.com/ruby/ruby/blob/trunk/common.mk#L1213 $(srcdir)/revision.h: $(REVISION_H) -revision.tmp:: $(srcdir)/version.h $(tooldir)/file2lastrev.rb $(REVISION_FORCE) +revision.$(HAVE_BASERUBY:no=tmp):: + $(Q) $(NULLCMD) > $@ +revision.$(HAVE_BASERUBY:yes=tmp):: $(srcdir)/version.h $(tooldir)/file2lastrev.rb $(REVISION_FORCE) $(Q) $(BASERUBY) $(tooldir)/file2lastrev.rb -q --revision.h --srcdir="$(srcdir)" > $@ $(REVISION_H): revision.tmp -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/