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
This commit is contained in:
Ludovic Courtès 2008-03-11 08:42:26 +00:00
parent 6a3f5200a7
commit 2d15d4c269

View File

@ -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