archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libxslt / trunk / 0002-Fix-manpage.patch
blobfe7bfea5c35ef65d6dc5ae58fdd762068e6d2a9a
1 From ea42953d3d75278f4f89009dfeed115200e4d102 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
3 Date: Wed, 10 Jun 2020 17:13:43 +0000
4 Subject: [PATCH 2/2] Fix manpage
6 Use the right stylesheet for DocBook 4. This fixes the bad whitespace
7 processing.
9 Use the just-built xsltproc to generate the manpage.
10 ---
11 doc/Makefile.am | 4 ++--
12 doc/xsltproc.xml | 2 +-
13 2 files changed, 3 insertions(+), 3 deletions(-)
15 diff --git a/doc/Makefile.am b/doc/Makefile.am
16 index 3d5364ca..6a7b9408 100644
17 --- a/doc/Makefile.am
18 +++ b/doc/Makefile.am
19 @@ -239,9 +239,9 @@ libxslt-api.xml libxslt-refs.xml EXSLT/libexslt-api.xml \
20 ($(XSLTPROC) -o ../libxslt/libxslt.syms $(srcdir)/syms.xsl $(srcdir)/symbols.xml)
22 xsltproc.1: $(srcdir)/xsltproc.xml
23 - -@(if [ -x $(XSLTPROC) ] ; then \
24 + -@(if [ -x $(srcdir)/../xsltproc/xsltproc ] ; then \
25 echo "Rebuilding the man pages from the xml" ; \
26 - $(XSLTPROC) --nonet $(srcdir)/xsltproc.xml ; fi)
27 + $(srcdir)/../xsltproc/xsltproc --nonet $(srcdir)/xsltproc.xml ; fi)
29 # Note that in the following, xmllint output is piped to xsltproc
30 search.php: $(srcdir)/api.xsl $(srcdir)/site.xsl $(srcdir)/search.templ \
31 diff --git a/doc/xsltproc.xml b/doc/xsltproc.xml
32 index 08fc3e97..6ca1b323 100644
33 --- a/doc/xsltproc.xml
34 +++ b/doc/xsltproc.xml
35 @@ -1,6 +1,6 @@
36 <?xml version="1.0"?>
37 <?xml-stylesheet type="text/xsl"
38 - href="http://cdn.docbook.org/release/xsl/current//manpages/docbook.xsl"?>
39 + href="http://cdn.docbook.org/release/xsl-nons/current/manpages/docbook.xsl"?>
40 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
41 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
43 --
44 2.27.0