1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../docbookx/docbookx.conf
5 # Copyright (C) 2008 - 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 # TODO: this is a quickhack to have a working docbook installation to fix many packages which depend on it.
16 # the whole installation of the docbook xml-dtds and xslts should be reworked.
17 # best would be to define (or find out) how a standard docbook and xml-catalog installation should look
18 # like and the registration in the system catalog should be done in a postinstall script
19 # (other packages may also install dtds, xslts which should be registered)
20 # after this is done, it will be possible to put every docbook version and xslt and others into
24 destdir=/usr/share/xml/docbook
27 systemcatalog=$sysconfdir/catalog
28 dtdprefix=docbook-xml-dtd
29 dtddest=$destdir/$dtdprefix
33 if [ ! -e $systemcatalog ]; then
34 xmlcatalog --noout --create $systemcatalog
36 for catalogfile in $1; do
37 egrep $catalogfile $systemcatalog > /dev/null || xmlcatalog --noout --add nextCatalog "" file://$catalogfile $systemcatalog
42 unzip -o -d $dtddest-4.1.2 $archdir/$(match_source_file 412)
43 cp -f $confdir/catalog-4.1.2.xml $dtddest-4.1.2/catalog.xml
44 register_catalog $dtddest-4.1.2/catalog.xml
48 for dtdver in 4.2 4.3 4.4 4.5; do
49 unzip -o -d $dtddest-$dtdver $archdir/$(match_source_file xml-$dtdver)
50 register_catalog $dtddest-$dtdver/catalog.xml
55 unzip -o -d $dtddest-5.0 $archdir/$(match_source_file docbook-5.0)
56 register_catalog $dtddest-5.0/catalog.xml
61 $compressor -d < $archdir/$(match_source_file xsl) | tar x
62 register_catalog $destdir/docbook-xsl*/catalog.xml
73 mainfunction=install_docbook