summaryrefslogtreecommitdiff
path: root/system/docbook-xml/doinst.sh
diff options
context:
space:
mode:
authorAzure Zanculmarktum <zanculmarktum@gmail.com>2017-08-11 16:13:06 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:57:57 +0700
commit36639e7a89817ae30013d82ec1232159a0f70476 (patch)
treef1e41ca0a054d915b3ad872b4dcb3af35b54af1a /system/docbook-xml/doinst.sh
parent5a49da5bdab89a985f5747f6e666a95bac111d6b (diff)
downloadslackbuilds-36639e7a89817ae30013d82ec1232159a0f70476.tar.gz
system/docbook-xml: Added (DocBook DTD for XML).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/docbook-xml/doinst.sh')
-rw-r--r--system/docbook-xml/doinst.sh196
1 files changed, 196 insertions, 0 deletions
diff --git a/system/docbook-xml/doinst.sh b/system/docbook-xml/doinst.sh
new file mode 100644
index 0000000000..8599dd12fb
--- /dev/null
+++ b/system/docbook-xml/doinst.sh
@@ -0,0 +1,196 @@
+if [ ! -e etc/xml/docbook ]; then
+ mkdir -p etc/xml
+ xmlcatalog --noout --create etc/xml/docbook
+fi
+
+# V4.1.2
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.1.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2/docbookx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2/calstblx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2/soextblx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2/dbpoolx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2/dbhierx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2/dbgenent.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2/dbnotnx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2/dbcentx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
+ etc/xml/docbook
+xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
+ etc/xml/docbook
+
+# V4.2
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2/docbookx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2/calstblx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2/soextblx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbpoolx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbhierx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbgenent.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbnotnx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbcentx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.2" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2" \
+ etc/xml/docbook
+xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.2" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2" \
+ etc/xml/docbook
+
+# V4.3
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.3//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3/docbookx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3/calstblx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3/soextblx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3/dbpoolx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3/dbhierx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3/dbgenent.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3/dbnotnx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3/dbcentx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.3" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3" \
+ etc/xml/docbook
+xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.3" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3" \
+ etc/xml/docbook
+
+# V4.4
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.4//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4/docbookx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4/calstblx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4/htmltblx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4/soextblx.dtd" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4/dbpoolx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4/dbhierx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4/dbgenent.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4/dbnotnx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4/dbcentx.mod" \
+ etc/xml/docbook
+xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.4" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4" \
+ etc/xml/docbook
+xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.4" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4" \
+ etc/xml/docbook
+
+if [ ! -e etc/xml/catalog ]; then
+ xmlcatalog --create etc/xml/catalog
+fi
+xmlcatalog --noout --add "delegatePublic" \
+ "-//OASIS//ENTITIES DocBook XML" \
+ "file:///etc/xml/docbook" \
+ etc/xml/catalog
+xmlcatalog --noout --add "delegatePublic" \
+ "-//OASIS//DTD DocBook XML" \
+ "file:///etc/xml/docbook" \
+ etc/xml/catalog
+xmlcatalog --noout --add "delegateSystem" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook" \
+ etc/xml/catalog
+xmlcatalog --noout --add "delegateURI" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook" \
+ etc/xml/catalog