2006-11-11 12:39:16 +01:00
|
|
|
#!/bin/bash
|
2006-10-02 21:32:06 +02:00
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd /sources
|
|
|
|
mkdir docbook-xml
|
|
|
|
cd docbook-xml
|
2007-04-13 21:26:35 +02:00
|
|
|
unzip ../docbook-xml-4.5.zip
|
2012-02-02 00:29:37 +01:00
|
|
|
install -v -d -m755 $PKG_DEST/usr/share/xml/docbook/xml-dtd-4.5
|
|
|
|
install -v -d -m755 $PKG_DEST/etc/xml
|
2006-10-02 21:32:06 +02:00
|
|
|
chown -R root:root .
|
|
|
|
cp -v -af docbook.cat *.dtd ent/ *.mod \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/usr/share/xml/docbook/xml-dtd-4.5
|
|
|
|
if [ ! -e $PKG_DEST/etc/xml/docbook ]; then
|
|
|
|
xmlcatalog --noout --create $PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
fi
|
|
|
|
xmlcatalog --noout --add "public" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"-//OASIS//DTD DocBook XML V4.5//EN" \
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "public" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
|
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "public" \
|
|
|
|
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "public" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
|
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "public" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
|
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "public" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
|
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "public" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
|
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "public" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
|
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "public" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
|
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "rewriteSystem" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5" \
|
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "rewriteURI" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5" \
|
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
|
|
|
if [ ! -e $PKG_DEST/etc/xml/catalog ]; then
|
|
|
|
xmlcatalog --noout --create $PKG_DEST/etc/xml/catalog
|
2006-10-02 21:32:06 +02:00
|
|
|
fi
|
|
|
|
xmlcatalog --noout --add "delegatePublic" \
|
|
|
|
"-//OASIS//ENTITIES DocBook XML" \
|
|
|
|
"file:///etc/xml/docbook" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/catalog
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "delegatePublic" \
|
|
|
|
"-//OASIS//DTD DocBook XML" \
|
|
|
|
"file:///etc/xml/docbook" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/catalog
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "delegateSystem" \
|
|
|
|
"http://www.oasis-open.org/docbook/" \
|
|
|
|
"file:///etc/xml/docbook" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/catalog
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "delegateURI" \
|
|
|
|
"http://www.oasis-open.org/docbook/" \
|
|
|
|
"file:///etc/xml/docbook" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/catalog
|
2007-04-13 21:26:35 +02:00
|
|
|
for DTDVERSION in 4.1.2 4.2 4.3 4.4
|
2006-10-02 21:32:06 +02:00
|
|
|
do
|
|
|
|
xmlcatalog --noout --add "public" \
|
|
|
|
"-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
|
|
|
|
"http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
|
2007-04-13 21:26:35 +02:00
|
|
|
"file:///usr/share/xml/docbook/xml-dtd-4.5" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/docbook
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "delegateSystem" \
|
|
|
|
"http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
|
|
|
|
"file:///etc/xml/docbook" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/catalog
|
2006-10-02 21:32:06 +02:00
|
|
|
xmlcatalog --noout --add "delegateURI" \
|
|
|
|
"http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
|
|
|
|
"file:///etc/xml/docbook" \
|
2012-02-02 00:29:37 +01:00
|
|
|
$PKG_DEST/etc/xml/catalog
|
2006-10-02 21:32:06 +02:00
|
|
|
done
|
2012-02-07 23:30:26 +01:00
|
|
|
if ! [ -z "$PKG_DEST" ]; then
|
|
|
|
export PKGDIR=/sources/docbook-xml
|
|
|
|
packInstall
|
|
|
|
fi
|
2012-02-02 00:29:37 +01:00
|
|
|
rm -rf $PKG_DEST
|
2006-10-02 21:32:06 +02:00
|
|
|
cd ..
|
|
|
|
rm -rf docbook-xml
|
|
|
|
|
|
|
|
exit
|