diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2012-08-17 08:38:35 +0400 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2013-04-09 20:56:23 +0200 |
commit | aed87ae3f28b85b24eff734937b85473828e297d (patch) | |
tree | 950948136c531d20154be8c4cee1703d8217388e /m4 | |
parent | 4947251b3fd97eb71ec630919e43bcce4787e0ac (diff) |
Support XML_CATALOG_FILES
Fixes #682077
Diffstat (limited to 'm4')
-rw-r--r-- | m4/as-docbook.m4 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/m4/as-docbook.m4 b/m4/as-docbook.m4 index 8a1b32a..2e27050 100644 --- a/m4/as-docbook.m4 +++ b/m4/as-docbook.m4 @@ -14,7 +14,19 @@ AC_DEFUN([AS_DOCBOOK], TYPE_UC=XML DOCBOOK_VERSION=4.1.2 - if test ! -f /etc/xml/catalog; then + if test -n "$XML_CATALOG_FILES"; then + oldIFS=$IFS + IFS=' ' + for xml_catalog_file in $XML_CATALOG_FILES; do + if test -f $xml_catalog_file; then + XML_CATALOG=$xml_catalog_file + CAT_ENTRY_START='<!--' + CAT_ENTRY_END='-->' + break + fi + done + IFS=$oldIFS + elif test ! -f /etc/xml/catalog; then for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/ /usr/local/share/xsl/docbook ; do if test -d "$i"; then |