@matheusbsbs / matheus-bagliano / commits / 8dd35c7121
Fork 0

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 <gitster@pobox.com>

Junio C Hamano committed Dec 3, 2009 at 00:06 UTC 8dd35c7121696851f837a5d8b17adaa99daf83ef
1 file changed +5 -2
Documentation/Makefile
+5 -2
@@ -103,9 +103,12 @@ ifdef DOCBOOK_SUPPRESS_SP
103 XMLTO_EXTRA += -m manpage-suppress-sp.xsl
104 endif
105
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.
111 XMLTO_EXTRA += --stringparam man.base.url.for.relative.links=$(MAN_BASE_URL)
108 -endif
112
113 # If your target system uses GNU groff, it may try to render
114 # apostrophes as a "pretty" apostrophe using unicode. This breaks