Skip to content
Permalink
b7ef5b9c45
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 176 lines (151 sloc) 5.48 KB
#!/usr/bin/env beesh
# BEE_VERSION docbook-catalog-1.0-1
# generate /etc/xml/catalog for
# docbook-xml45.be0
# docbook-xml50.be0
# docbook-xml51.be0
# docbook-xsl.be0
# SRCURL[0]=''
# PATCHURL+=()
# build_in_sourcedir
# sourcesubdir_append src
#mee_extract() {
# bee_extract "${@}"
#}
#mee_patch() {
# bee_patch "${@}"
#}
#mee_configure() {
# bee_configure
#}
mee_build() {
:
}
mee_install() {
install -vdm755 ${D}/etc/xml
xmlcatalog --noout --create ${D}/etc/xml/catalog
#
# docbook-xml45-4.5-0
#
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//ENTITIES DocBook XML" \
"file:///etc/xml/docbook" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML" \
"file:///etc/xml/docbook" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateSystem" \
"http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" \
${D}/etc/xml/catalog
#
# utilize DocBook XML DTD V4.5 when any version 4.x is requested in the System Identifier
#
for DTDVERSION in 4.1.2 4.2 4.3 4.4; do
xmlcatalog --noout --add "delegateSystem" \
"http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
"file:///etc/xml/docbook" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
"file:///etc/xml/docbook" \
${D}/etc/xml/catalog
done
#
# docbook-xml50 5.0
#
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML 5.0//EN" \
"file:///usr/share/xml/docbook/schema/dtd/5.0/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateSystem" \
"http://docbook.org/xml/5.0/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/5.0/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.0/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/5.0/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.0/rng/" \
"file:///usr/share/xml/docbook/schema/rng/5.0/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.0/sch/" \
"file:///usr/share/xml/docbook/schema/sch/5.0/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.0/xsd/" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/catalog.xml" \
${D}/etc/xml/catalog
#
# docbook-xml51 5.1
#
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML 5.1//EN" \
"file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateSystem" \
"http://docbook.org/xml/5.1/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.1/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.1/rng/" \
"file:///usr/share/xml/docbook/schema/rng/5.1/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.1/sch/" \
"file:///usr/share/xml/docbook/schema/sch/5.1/catalog.xml" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.1/xsd/" \
"file:///usr/share/xml/docbook/schema/xsd/5.1/catalog.xml" \
${D}/etc/xml/catalog
#
# docbook-xsl-1.72.9
#
xmlcatalog --noout --add "rewriteSystem" \
"https://cdn.docbook.org/release/xsl-nons/1.79.2" \
"/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "rewriteURI" \
"https://cdn.docbook.org/release/xsl-nons/1.79.2" \
"/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "rewriteSystem" \
"https://cdn.docbook.org/release/xsl-nons/current" \
"/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "rewriteURI" \
"https://cdn.docbook.org/release/xsl-nons/current" \
"/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/current" \
"/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/current" \
"/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl-ns/current" \
"/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
${D}/etc/xml/catalog
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl-ns/current" \
"/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
${D}/etc/xml/catalog
}
#mee_install_post() {
# exit
#}