Skip to content

Commit 9821f6d

Browse files
committed
Override release date in Makefile if possible
1 parent 849087c commit 9821f6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

defs/gmake.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ ifeq ($(if $(filter all main exts enc trans libencs libenc libtrans \
5656
-include $(SHOWFLAGS)
5757
endif
5858

59+
ifeq ($(HAVE_BASERUBY):$(HAVE_GIT),yes:yes)
60+
override modified := $(shell $(BASERUBY) -C $(srcdir) tool/file2lastrev.rb --modified='%Y %m %d')
61+
override RUBY_RELEASE_YEAR := $(word 1,$(modified))
62+
override RUBY_RELEASE_MONTH := $(word 2,$(modified))
63+
override RUBY_RELEASE_DAY := $(word 3,$(modified))
64+
endif
65+
5966
ifneq ($(filter universal-%,$(arch)),)
6067
define archcmd
6168
%.$(1).S: %.c

0 commit comments

Comments
 (0)