doc: set actual revdate for manpages

manpages expect the date of the last revision, if that is not found DocBook Stylesheets go through a series of hacks to generate one with the format `%d/%d/%Y` which is not ideal. In addition to this format not being standard, different tools generate dates with different formats. There's no need for any confusion if we specify the revision date, so let's do so. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Apr 13, 2023 at 01:47 UTC 28fde3a1f4322993d731e2b2b6543ba0e24a5788
1 file changed +4 -1
Documentation/Makefile
+4 -1
@@ -144,13 +144,16 @@ man5dir = $(mandir)/man5
144 man7dir = $(mandir)/man7
145 # DESTDIR =
146
147 +GIT_DATE := $(shell git show --quiet --pretty='%as')
148 +
149 ASCIIDOC = asciidoc
150 ASCIIDOC_EXTRA =
151 ASCIIDOC_HTML = xhtml11
152 ASCIIDOC_DOCBOOK = docbook
153 ASCIIDOC_CONF = -f asciidoc.conf
154 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)'
157 ASCIIDOC_DEPS = asciidoc.conf GIT-ASCIIDOCFLAGS
158 TXT_TO_HTML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_HTML)
159 TXT_TO_XML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_DOCBOOK)