mirror of
https://git.yoctoproject.org/poky
synced 2026-10-23 19:38:18 +00:00
Where there isn't a copyright statement, add one to make it explicit. Also drop editor config lines where they were present. (From OE-Core rev: 880c1ea3edc8edef974e65b2d424fc36809ea034) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
31 lines
801 B
Plaintext
31 lines
801 B
Plaintext
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
|
|
DEPENDS = "libxml2-native"
|
|
|
|
# A whitespace-separated list of XML catalogs to be registered, for example
|
|
# "${sysconfdir}/xml/docbook-xml.xml".
|
|
XMLCATALOGS ?= ""
|
|
|
|
SYSROOT_PREPROCESS_FUNCS:append = " xmlcatalog_sstate_postinst"
|
|
|
|
xmlcatalog_complete() {
|
|
ROOTCATALOG="${STAGING_ETCDIR_NATIVE}/xml/catalog"
|
|
if [ ! -f $ROOTCATALOG ]; then
|
|
mkdir --parents $(dirname $ROOTCATALOG)
|
|
xmlcatalog --noout --create $ROOTCATALOG
|
|
fi
|
|
for CATALOG in ${XMLCATALOGS}; do
|
|
xmlcatalog --noout --add nextCatalog unused file://$CATALOG $ROOTCATALOG
|
|
done
|
|
}
|
|
|
|
xmlcatalog_sstate_postinst() {
|
|
mkdir -p ${SYSROOT_DESTDIR}${bindir}
|
|
dest=${SYSROOT_DESTDIR}${bindir}/postinst-${PN}-xmlcatalog
|
|
echo '#!/bin/sh' > $dest
|
|
echo '${xmlcatalog_complete}' >> $dest
|
|
chmod 0755 $dest
|
|
}
|