aboutsummaryrefslogtreecommitdiff
path: root/system/mathML2dtd/doinst.sh
diff options
context:
space:
mode:
authorNecib ÇAPAR <necipcapar@gmail.com>2022-08-13 08:48:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-08-13 08:48:21 +0700
commit4e56e6c92ca45fe3a56d24e79fad10af7ac71a3c (patch)
tree143399e7b91ca4549e3341be7607db8d4f13346a /system/mathML2dtd/doinst.sh
parent745a7b999d151eebd8f0bdc781a47b7751797b6a (diff)
system/mathML2dtd: Added (W3 MathML2 DTD).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mathML2dtd/doinst.sh')
-rw-r--r--system/mathML2dtd/doinst.sh86
1 files changed, 86 insertions, 0 deletions
diff --git a/system/mathML2dtd/doinst.sh b/system/mathML2dtd/doinst.sh
new file mode 100644
index 0000000000000..b72330b82ca3b
--- /dev/null
+++ b/system/mathML2dtd/doinst.sh
@@ -0,0 +1,86 @@
+catalog_filepath=etc/xml/catalog
+
+if [ ! -e etc/xml ]; then
+ mkdir -p etc/xml
+ xmlcatalog --noout --create $catalog_filepath
+fi
+
+# DocBook V4.x Entries
+xmlcatalog --noout --add 'delegatePublic' \
+ "-//OASIS//ENTITIES DocBook XML" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegatePublic' \
+ "-//OASIS//DTD DocBook XML" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateSystem' \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateURI' \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateSystem' \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateURI' \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateSystem' \
+ "http://www.oasis-open.org/docbook/xml/4.2/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateURI' \
+ "http://www.oasis-open.org/docbook/xml/4.2/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateSystem' \
+ "http://www.oasis-open.org/docbook/xml/4.3/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateURI' \
+ "http://www.oasis-open.org/docbook/xml/4.3/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateSystem' \
+ "http://www.oasis-open.org/docbook/xml/4.4/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'delegateURI' \
+ "http://www.oasis-open.org/docbook/xml/4.4/" \
+ "file:///etc/xml/docbook" \
+ $catalog_filepath
+xmlcatalog --noout --add 'rewriteSystem' \
+ "http://cdn.docbook.org/release/xsl-nons/1.79.2" \
+ "file://usr/share/xml/docbook/xsl-stylesheets-1.79.2" \
+ $catalog_filepath
+xmlcatalog --noout --add 'rewriteURI' \
+ "http://cdn.docbook.org/release/xsl-nons/1.79.2" \
+ "file://usr/share/xml/docbook/xsl-stylesheets-1.79.2" \
+ $catalog_filepath
+xmlcatalog --noout --add 'rewriteSystem' \
+ "http://cdn.docbook.org/release/xsl-nons/current" \
+ "file://usr/share/xml/docbook/xsl-stylesheets-1.79.2" \
+ $catalog_filepath
+xmlcatalog --noout --add 'rewriteURI' \
+ "http://cdn.docbook.org/release/xsl-nons/current/" \
+ "file://usr/share/xml/docbook/xsl-stylesheets-1.79.2" \
+ $catalog_filepath
+xmlcatalog --noout --add 'rewriteSystem' \
+ "http://docbook.sourceforge.net/release/xsl/current" \
+ "/usr/share/xml/docbook/xsl-stylesheets-1.79.2" \
+ $catalog_filepath
+xmlcatalog --noout --add 'rewriteURI' \
+ "http://docbook.sourceforge.net/release/xsl/current" \
+ "/usr/share/xml/docbook/xsl-stylesheets-1.79.2" \
+ $catalog_filepath
+
+# 'mathML2dtd' catalog Entry
+xmlcatalog --noout --add 'nextCatalog' \
+ '' \
+ "file:///usr/share/xml/schema/w3c/mathml2/catalog_mathML2.xml" \
+ $catalog_filepath