X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=blobdiff_plain;f=doc%2Fdoc-docbook%2FOS-Fixups;h=0a3b4113d5f6abc7df1d4b1b67420655727dcc2c;hp=f9c1d987fd515ab80b48ac4dae6d707cd3fd5198;hb=52af44332434a2a34ae30f3d0ac3b549d512e4cc;hpb=a21196501a7c718aa809e927fc9f1f38ed481cec diff --git a/doc/doc-docbook/OS-Fixups b/doc/doc-docbook/OS-Fixups index f9c1d987f..0a3b4113d 100755 --- a/doc/doc-docbook/OS-Fixups +++ b/doc/doc-docbook/OS-Fixups @@ -1,8 +1,8 @@ #!/usr/bin/perl -w -# $Cambridge: exim/doc/doc-docbook/OS-Fixups,v 1.1 2009/10/16 10:36:52 nm4 Exp $ + use strict; -# Script to hack around using absolute paths in xsl:import with fixups. +# Script to hack around xsl:import paths; ideally, the system catalogs are used. # Let every OS define its own manipulations. # Uses the Perl $^O values to identify the current OS. # @@ -11,12 +11,36 @@ use strict; sub filter_freebsd { -s{"/usr/share/sgml/docbook/xsl-stylesheets-1.70.1/} +s{"http://docbook.sourceforge.net/release/xsl/current/} {"/usr/local/share/xsl/docbook/}; s{"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"} {"/usr/local/share/xml/docbook/4.2/docbookx.dtd"}; } +sub filter_linux +{ +# SUSE 10 with extra pkgs +-d "/usr/share/xml/docbook/stylesheet/nwalsh/1.71.1/" && + s{"http://docbook.sourceforge.net/release/xsl/current/} + {"/usr/share/xml/docbook/stylesheet/nwalsh/1.71.1/}; +# Ubuntu/Debian with standard docbook-xsl pkgs +-d "/usr/share/xml/docbook/stylesheet/docbook-xsl/" && + s{"http://docbook.sourceforge.net/release/xsl/current/} + {"/usr/share/xml/docbook/stylesheet/docbook-xsl/}; +s{"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"} + {"/usr/share/xml/docbook/schema/dtd/4.2/docbookx.dtd"}; +} + +sub filter_darwin +{ +# NB - this uses the Mac Ports installations +s{"http://docbook.sourceforge.net/release/xsl/current/} + {"/opt/local/share/xsl/docbook-xsl/}; +s{"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"} + {"/opt/local/share/xml/docbook/4.2/docbookx.dtd"}; +} + + # Define OS filters above. my $os_filter;