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

ruby-changes:58877

From: Nobuyoshi <ko1@a...>
Date: Thu, 21 Nov 2019 15:17:54 +0900 (JST)
Subject: [ruby-changes:58877] ffab1bfdfc (master): Fixed for old git

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

From ffab1bfdfcb9f1448c063e93f04209c90327ad9c Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 21 Nov 2019 15:17:34 +0900
Subject: Fixed for old git


diff --git a/defs/gmake.mk b/defs/gmake.mk
index 0a60a83..c6fdbca 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -291,8 +291,8 @@ $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: \ https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L291
 	$(UNICODE_FILES) $(UNICODE_PROPERTY_FILES)
 endif
 
-REVISION_IN_HEADER := $(shell sed -n 's/^\#define RUBY_FULL_REVISION "\(.*\)"/\1/p' $(srcdir)/revision.h)
-REVISION_LATEST := $(shell git -C $(srcdir) log -1 --format=%H)
+REVISION_IN_HEADER := $(shell sed -n 's/^\#define RUBY_FULL_REVISION "\(.*\)"/\1/p' $(srcdir)/revision.h 2>/dev/null)
+REVISION_LATEST := $(shell cd $(srcdir) && git log -1 --format=%H)
 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 v0.10.2


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

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