Skip to content

Commit d6661e6

Browse files
committed
Merge branch 'fc/doc-use-datestamp-in-commit'
Instead of the time the formatter was run, show the timestamp recorded in the commit in the documentation. * fc/doc-use-datestamp-in-commit: doc: set actual revdate for manpages
2 parents a02675a + 28fde3a commit d6661e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,16 @@ man5dir = $(mandir)/man5
144144
man7dir = $(mandir)/man7
145145
# DESTDIR =
146146

147+
GIT_DATE := $(shell git show --quiet --pretty='%as')
148+
147149
ASCIIDOC = asciidoc
148150
ASCIIDOC_EXTRA =
149151
ASCIIDOC_HTML = xhtml11
150152
ASCIIDOC_DOCBOOK = docbook
151153
ASCIIDOC_CONF = -f asciidoc.conf
152154
ASCIIDOC_COMMON = $(ASCIIDOC) $(ASCIIDOC_EXTRA) $(ASCIIDOC_CONF) \
153-
-amanmanual='Git Manual' -amansource='Git $(GIT_VERSION)'
155+
-amanmanual='Git Manual' -amansource='Git $(GIT_VERSION)' \
156+
-arevdate='$(GIT_DATE)'
154157
ASCIIDOC_DEPS = asciidoc.conf GIT-ASCIIDOCFLAGS
155158
TXT_TO_HTML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_HTML)
156159
TXT_TO_XML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_DOCBOOK)

0 commit comments

Comments
 (0)