Skip to content

Commit 8dd35c7

Browse files
committed
Unconditionally set man.base.url.for.relative.links
Even setting it to empty is better than leaving it unset as it prevents the warning cruft from appearing in the output. Signed-off-by: Junio C Hamano <[email protected]>
1 parent a479a56 commit 8dd35c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Documentation/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,12 @@ ifdef DOCBOOK_SUPPRESS_SP
103103
XMLTO_EXTRA += -m manpage-suppress-sp.xsl
104104
endif
105105

106-
ifdef MAN_BASE_URL
106+
# Newer DocBook stylesheet emits warning cruft in the output when
107+
# this is not set, and if set it shows an absolute link. We can
108+
# use MAN_BASE_URL=http://www.kernel.org/pub/software/scm/git/docs/
109+
# but distros may want to set it to /usr/share/doc/git-core/docs/ or
110+
# something like that.
107111
XMLTO_EXTRA += --stringparam man.base.url.for.relative.links=$(MAN_BASE_URL)
108-
endif
109112

110113
# If your target system uses GNU groff, it may try to render
111114
# apostrophes as a "pretty" apostrophe using unicode. This breaks

0 commit comments

Comments
 (0)