aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-23 09:36:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-23 09:36:33 +0000
commitaaa123591daef0d562c8ecc640783624d47e2b30 (patch)
tree1c681aece33dcb0c3d362d86f690372b93a359b2 /common.mk
parent80000c534c179add12eb91010feaa7b43b6abec1 (diff)
downloadruby-aaa123591daef0d562c8ecc640783624d47e2b30.tar.gz
common.mk: update-man-date
* common.mk (update-man-date): update last date in man pages. * tool/vcs.rb (VCS#modified): returns last modified time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 839eba3c13..3ee4ae05f2 100644
--- a/common.mk
+++ b/common.mk
@@ -1023,6 +1023,12 @@ yes-test-all: sudo-precheck
sudo-precheck: PHONY
@$(SUDO) echo > $(NULL)
+update-man-date: PHONY
+ -$(Q) $(BASERUBY) -I"$(srcdir)/tool" -rvcs -i -p \
+ -e 'BEGIN{@vcs=VCS.detect(ARGV.shift)}' \
+ -e '$$_.sub!(/^(\.Dd ).*/){$$1+@vcs.modified(ARGF.path).strftime("%B %d, %Y")}' \
+ "$(srcdir)" "$(srcdir)"/man/*.1
+
help: PHONY
$(MESSAGE_BEGIN) \
" Makefile of Ruby" \