From 2d15d4c269c723865997572dbd7bdc1114f78799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 11 Mar 2008 08:42:26 +0000 Subject: [PATCH] Augment `libxml2' setup hook to add XSL stylesheets to XML catalogs. This allows, for instance, `docbook_xsl' to be visible (as part of `$XML_CATALOG_FILES') by packages that use it as a build input. svn path=/nixpkgs/trunk/; revision=11047 --- pkgs/development/libraries/libxml2/setup-hook.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/libxml2/setup-hook.sh b/pkgs/development/libraries/libxml2/setup-hook.sh index df1155d1809..d87c226506a 100644 --- a/pkgs/development/libraries/libxml2/setup-hook.sh +++ b/pkgs/development/libraries/libxml2/setup-hook.sh @@ -1,9 +1,11 @@ addXMLCatalogs () { - if test -d $1/xml/dtd; then - for i in $(find $1/xml/dtd -name catalog.xml); do - export XML_CATALOG_FILES="$XML_CATALOG_FILES $i" - done - fi + for kind in dtd xsl; do + if test -d $1/xml/$kind; then + for i in $(find $1/xml/$kind -name catalog.xml); do + export XML_CATALOG_FILES="$XML_CATALOG_FILES $i" + done + fi + done } if test -z "$libxmlHookDone"; then