[前][次][番号順一覧][スレッド一覧]

ruby-changes:70010

From: Nobuyoshi <ko1@a...>
Date: Thu, 2 Dec 2021 12:29:24 +0900 (JST)
Subject: [ruby-changes:70010] a7d0c2c448 (master): Needs to update revision.h unless existing [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=a7d0c2c448

From a7d0c2c4489f94a0087646040afccb66cec4e7d7 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 2 Dec 2021 12:20:53 +0900
Subject: Needs to update revision.h unless existing [ci skip]

---
 defs/gmake.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/defs/gmake.mk b/defs/gmake.mk
index dd258970543..1a6c8620ed9 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -338,8 +338,13 @@ $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: \ https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L338
 	$(UNICODE_FILES) $(UNICODE_PROPERTY_FILES)
 endif
 
+ifeq ($(wildcard $(srcdir)/revision.h),)
+REVISION_IN_HEADER := none
+REVISION_LATEST := update
+else
 REVISION_IN_HEADER := $(shell sed -n 's/^\#define RUBY_FULL_REVISION "\(.*\)"/\1/p' $(srcdir)/revision.h 2>/dev/null)
 REVISION_LATEST := $(shell $(CHDIR) $(srcdir) && git log -1 --format=%H 2>/dev/null)
+endif
 ifneq ($(REVISION_IN_HEADER),$(REVISION_LATEST))
 # GNU make treat the target as unmodified when its dependents get
 # updated but it is not updated, while others may not.
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]