mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
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:
parent
6a3f5200a7
commit
2d15d4c269
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user