Fixed indentation and changed upper-case variables to lower-case in base/docbook build file
This commit is contained in:
parent
80cc762082
commit
76ded6879e
1 changed files with 135 additions and 137 deletions
|
@ -3,8 +3,8 @@ version=1.0
|
|||
build=1sml
|
||||
homepage='https://docbook.org'
|
||||
download=''
|
||||
DOCBOOKV="4.5"
|
||||
XSLV="1.79.2"
|
||||
docbookv="4.5"
|
||||
xslv="1.79.2"
|
||||
desc="DocBook DTD for XML"
|
||||
requires="libxslt libxml2"
|
||||
|
||||
|
@ -12,180 +12,178 @@ build() {
|
|||
mkandenterbuilddir
|
||||
rm -rf $app-$version
|
||||
|
||||
tar xf $srcdir/docbook-xml-$DOCBOOKV.tar.?z*
|
||||
cd docbook-xml-$DOCBOOKV
|
||||
tar xf $srcdir/docbook-xml-$docbookv.tar.?z*
|
||||
cd docbook-xml-$docbookv
|
||||
fixbuilddirpermissions
|
||||
|
||||
XML_CATALOG="$pkg/etc/xml/catalog"
|
||||
XML_DOCBOOK="$pkg/etc/xml/docbook"
|
||||
xml_catalog="$pkg/etc/xml/catalog"
|
||||
xml_docbook="$pkg/etc/xml/docbook"
|
||||
|
||||
cd docbook-4.5
|
||||
|
||||
install -d -m755 "$pkg"/share/xml/docbook/xml-dtd-4.5
|
||||
install -d -m755 "$pkg"/etc/xml
|
||||
#rm -rf /etc/xml
|
||||
|
||||
chown -R root:root .
|
||||
cp -v -af docbook.cat *.dtd ent/ *.mod \
|
||||
"$pkg"/share/xml/docbook/xml-dtd-"$DOCBOOKV"
|
||||
chown -R root:root .
|
||||
cp -v -af docbook.cat *.dtd ent/ *.mod \
|
||||
"$pkg"/share/xml/docbook/xml-dtd-"$docbookv"
|
||||
|
||||
# Create the docbook and catalog
|
||||
xmlcatalog --noout --create "$XML_DOCBOOK"
|
||||
xmlcatalog --noout --create "$XML_CATALOG"
|
||||
# Create the docbook and catalog
|
||||
xmlcatalog --noout --create "$xml_docbook"
|
||||
xmlcatalog --noout --create "$xml_catalog"
|
||||
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//DTD DocBook XML V"$DOCBOOKV"//EN" \
|
||||
"http://www.oasis-open.org/docbook/xml/"$DOCBOOKV"/docbookx.dtd" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//DTD DocBook XML CALS Table Model V"$DOCBOOKV"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"/calstblx.dtd" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "public" \
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//DTD DocBook XML V"$docbookv"//EN" \
|
||||
"http://www.oasis-open.org/docbook/xml/"$docbookv"/docbookx.dtd" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//DTD DocBook XML CALS Table Model V"$docbookv"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"/calstblx.dtd" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"/soextblx.dtd" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ELEMENTS DocBook XML Information Pool V"$DOCBOOKV"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"/dbpoolx.mod" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V"$DOCBOOKV"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"/dbhierx.mod" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ELEMENTS DocBook XML HTML Tables V"$DOCBOOKV"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"/htmltblx.mod" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ENTITIES DocBook XML Notations V"$DOCBOOKV"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"/dbnotnx.mod" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ENTITIES DocBook XML Character Entities V"$DOCBOOKV"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"/dbcentx.mod" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ENTITIES DocBook XML Additional General Entities V"$DOCBOOKV"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"/dbgenent.mod" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://www.oasis-open.org/docbook/xml/"$DOCBOOKV"" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://www.oasis-open.org/docbook/xml/"$DOCBOOKV"" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$DOCBOOKV"" \
|
||||
"$XML_DOCBOOK"
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"/soextblx.dtd" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ELEMENTS DocBook XML Information Pool V"$docbookv"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"/dbpoolx.mod" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V"$docbookv"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"/dbhierx.mod" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ELEMENTS DocBook XML HTML Tables V"$docbookv"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"/htmltblx.mod" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ENTITIES DocBook XML Notations V"$docbookv"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"/dbnotnx.mod" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ENTITIES DocBook XML Character Entities V"$docbookv"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"/dbcentx.mod" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//ENTITIES DocBook XML Additional General Entities V"$docbookv"//EN" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"/dbgenent.mod" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://www.oasis-open.org/docbook/xml/"$docbookv"" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://www.oasis-open.org/docbook/xml/"$docbookv"" \
|
||||
"file:///share/xml/docbook/xml-dtd-"$docbookv"" \
|
||||
"$xml_docbook"
|
||||
|
||||
|
||||
xmlcatalog --noout --add "delegatePublic" \
|
||||
xmlcatalog --noout --add "delegatePublic" \
|
||||
"-//OASIS//ENTITIES DocBook XML" \
|
||||
"file:///etc/xml/docbook" \
|
||||
"$XML_CATALOG"
|
||||
xmlcatalog --noout --add "delegatePublic" \
|
||||
"$xml_catalog"
|
||||
xmlcatalog --noout --add "delegatePublic" \
|
||||
"-//OASIS//DTD DocBook XML" \
|
||||
"file:///etc/xml/docbook" \
|
||||
"$XML_CATALOG"
|
||||
xmlcatalog --noout --add "delegateSystem" \
|
||||
"http://www.oasis-open.org/docbook/" \
|
||||
"file:///etc/xml/docbook" \
|
||||
"$XML_CATALOG"
|
||||
xmlcatalog --noout --add "delegateURI" \
|
||||
"http://www.oasis-open.org/docbook/" \
|
||||
"file:///etc/xml/docbook" \
|
||||
"$XML_CATALOG"
|
||||
|
||||
|
||||
# Prep the older versions too
|
||||
for DTDDOCBOOKV in 4.1.2 4.2 4.3 4.4
|
||||
do
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//DTD DocBook XML V$DTDDOCBOOKV//EN" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDDOCBOOKV/docbookx.dtd" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDDOCBOOKV" \
|
||||
"file:///share/xml/docbook/xml-dtd-$DOCBOOKV" \
|
||||
"$XML_DOCBOOK"
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDDOCBOOKV" \
|
||||
"file:///share/xml/docbook/xml-dtd-$DOCBOOKV" \
|
||||
"$XML_DOCBOOK"
|
||||
"$xml_catalog"
|
||||
xmlcatalog --noout --add "delegateSystem" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDDOCBOOKV/" \
|
||||
"http://www.oasis-open.org/docbook/" \
|
||||
"file:///etc/xml/docbook" \
|
||||
"$XML_CATALOG"
|
||||
"$xml_catalog"
|
||||
xmlcatalog --noout --add "delegateURI" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDDOCBOOKV/" \
|
||||
"http://www.oasis-open.org/docbook/" \
|
||||
"file:///etc/xml/docbook" \
|
||||
"$XML_CATALOG"
|
||||
done
|
||||
"$xml_catalog"
|
||||
|
||||
|
||||
tar xf $srcdir/docbook-xsl-nons-$XSLV.tar.?z*
|
||||
cd docbook-xsl-nons-$XSLV
|
||||
# Prep the older versions too
|
||||
for DTDdocbookv in 4.1.2 4.2 4.3 4.4
|
||||
do
|
||||
xmlcatalog --noout --add "public" \
|
||||
"-//OASIS//DTD DocBook XML V$DTDdocbookv//EN" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDdocbookv/docbookx.dtd" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDdocbookv" \
|
||||
"file:///share/xml/docbook/xml-dtd-$docbookv" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDdocbookv" \
|
||||
"file:///share/xml/docbook/xml-dtd-$docbookv" \
|
||||
"$xml_docbook"
|
||||
xmlcatalog --noout --add "delegateSystem" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDdocbookv/" \
|
||||
"file:///etc/xml/docbook" \
|
||||
"$xml_catalog"
|
||||
xmlcatalog --noout --add "delegateURI" \
|
||||
"http://www.oasis-open.org/docbook/xml/$DTDdocbookv/" \
|
||||
"file:///etc/xml/docbook" \
|
||||
"$xml_catalog"
|
||||
done
|
||||
|
||||
|
||||
tar xf $srcdir/docbook-xsl-nons-$xslv.tar.?z*
|
||||
cd docbook-xsl-nons-$xslv
|
||||
fixbuilddirpermissions
|
||||
|
||||
applypatch $srcdir/non-recursive-string-subst.patch
|
||||
|
||||
applypatch $srcdir/non-recursive-string-subst.patch
|
||||
install -v -m755 -d "$pkg"/share/xml/docbook/xsl-stylesheets-"$xslv"
|
||||
|
||||
install -v -m755 -d "$pkg"/share/xml/docbook/xsl-stylesheets-"$XSLV"
|
||||
|
||||
cp -v -R VERSION common eclipse epub extensions fo highlighting html \
|
||||
cp -v -R VERSION common eclipse epub extensions fo highlighting html \
|
||||
htmlhelp images javahelp lib manpages params profiling \
|
||||
roundtrip slides template tests tools webhelp website \
|
||||
xhtml xhtml-1_1 \
|
||||
"$pkg/share/xml/docbook/xsl-stylesheets-$XSLV" &&
|
||||
(
|
||||
cd "$pkg/share/xml/docbook/xsl-stylesheets-$XSLV"
|
||||
ln -s VERSION VERSION.xsl
|
||||
)
|
||||
"$pkg/share/xml/docbook/xsl-stylesheets-$xslv" &&
|
||||
(
|
||||
cd "$pkg/share/xml/docbook/xsl-stylesheets-$xslv"
|
||||
ln -s VERSION VERSION.xsl
|
||||
)
|
||||
|
||||
install -v -m644 -D README \
|
||||
"$pkg"/share/doc/docbook-xsl-"$XSLV"/README.txt
|
||||
install -v -m644 RELEASE-NOTES* NEWS* \
|
||||
"$pkg"/share/doc/docbook-xsl-"$XSLV"
|
||||
install -v -m644 -D README \
|
||||
"$pkg"/share/doc/docbook-xsl-"$xslv"/README.txt
|
||||
install -v -m644 RELEASE-NOTES* NEWS* \
|
||||
"$pkg"/share/doc/docbook-xsl-"$xslv"
|
||||
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://cdn.docbook.org/release/xsl-nons/"$XSLV"" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$XSLV" \
|
||||
"$XML_CATALOG" &&
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://cdn.docbook.org/release/xsl-nons/"$xslv"" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$xslv" \
|
||||
"$xml_catalog" &&
|
||||
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://cdn.docbook.org/release/xsl-nons/"$XSLV"" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$XSLV" \
|
||||
"$XML_CATALOG"
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://cdn.docbook.org/release/xsl-nons/"$xslv"" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$xslv" \
|
||||
"$xml_catalog"
|
||||
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://cdn.docbook.org/release/xsl-nons/current" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$XSLV" \
|
||||
"$XML_CATALOG" &&
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://cdn.docbook.org/release/xsl-nons/current" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$xslv" \
|
||||
"$xml_catalog" &&
|
||||
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://cdn.docbook.org/release/xsl-nons/current" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$XSLV" \
|
||||
"$XML_CATALOG"
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://cdn.docbook.org/release/xsl-nons/current" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$xslv" \
|
||||
"$xml_catalog"
|
||||
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl/"$XSLV"" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$XSLV" \
|
||||
"$XML_CATALOG" &&
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl/"$xslv"" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$xslv" \
|
||||
"$xml_catalog" &&
|
||||
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl/"$XSLV"" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$XSLV" \
|
||||
"$XML_CATALOG"
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl/"$xslv"" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$xslv" \
|
||||
"$xml_catalog"
|
||||
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl/current" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$XSLV" \
|
||||
"$XML_CATALOG" &&
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl/current" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$xslv" \
|
||||
"$xml_catalog" &&
|
||||
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl/current" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$XSLV" \
|
||||
"$XML_CATALOG"
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl/current" \
|
||||
"/share/xml/docbook/xsl-stylesheets-$xslv" \
|
||||
"$xml_catalog"
|
||||
|
||||
mkfinalpkg
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue