wok diff docbook-xml/receipt @ rev 19959

slim-theme-control: add compile_rules(); files processing following it.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 20 15:38:00 2017 +0300 (2017-05-20)
parents ed8073aa8cf0
children f51604223163
line diff
     1.1 --- a/docbook-xml/receipt	Mon Dec 21 00:07:14 2015 +0100
     1.2 +++ b/docbook-xml/receipt	Sat May 20 15:38:00 2017 +0300
     1.3 @@ -6,7 +6,7 @@
     1.4  SHORT_DESC="A widely used XML scheme for writing documentation and help. (version 4.5)"
     1.5  MAINTAINER="slaxemulator@gmail.com"
     1.6  LICENSE="MIT"
     1.7 -TARBALL="${PACKAGE}-${VERSION}.zip"
     1.8 +TARBALL="$PACKAGE-$VERSION.zip"
     1.9  WEB_SITE="http://www.oasis-open.org/docbook/"
    1.10  WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL"
    1.11  
    1.12 @@ -15,11 +15,9 @@
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16 -	cd $src
    1.17 -	mkdir -p $DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION}
    1.18 +	mkdir -p $DESTDIR/usr/share/xml/docbook/xml-dtd-$VERSION
    1.19  	cp -dRf docbook.cat *.dtd ent/ *.mod \
    1.20 -		$DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION}
    1.21 -
    1.22 +		$DESTDIR/usr/share/xml/docbook/xml-dtd-$VERSION
    1.23  }
    1.24  
    1.25  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.26 @@ -37,262 +35,262 @@
    1.27  	else
    1.28  		chroot "$1/" xmlcatalog --noout --create /etc/xml/docbook-xml
    1.29  	fi
    1.30 -	echo -n "Processing post-install commands..."
    1.31  
    1.32  	if [ "$1" ]; then
    1.33  		mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2> /dev/null
    1.34  		cp /etc/resolv.conf "$1/etc/resolv.conf"
    1.35  	fi
    1.36 -  # V4.1.2
    1.37 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.38 -    "-//OASIS//DTD DocBook XML V4.1.2//EN" \
    1.39 -    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
    1.40 -    "/etc//xml/docbook-xml"
    1.41 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.42 -    "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
    1.43 -    "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
    1.44 -    "/etc/xml/docbook-xml"
    1.45 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.46 -    "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
    1.47 -    "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
    1.48 -    "/etc/xml/docbook-xml"
    1.49 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.50 -    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
    1.51 -    "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
    1.52 -    "/etc/xml/docbook-xml"
    1.53 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.54 -    "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
    1.55 -    "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
    1.56 -    "/etc/xml/docbook-xml"
    1.57 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.58 -    "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
    1.59 -    "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
    1.60 -    "/etc/xml/docbook-xml"
    1.61 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.62 -    "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
    1.63 -    "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
    1.64 -    "/etc/xml/docbook-xml"
    1.65 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.66 -    "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
    1.67 -    "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
    1.68 -    "/etc/xml/docbook-xml"
    1.69 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.70 -    "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
    1.71 -    "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
    1.72 -    "/etc/xml/docbook-xml"
    1.73 -  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
    1.74 -    "http://www.oasis-open.org/docbook/xml/4.1.2" \
    1.75 -    "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
    1.76 -    "/etc/xml/docbook-xml"
    1.77 -  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
    1.78 -    "http://www.oasis-open.org/docbook/xml/4.1.2" \
    1.79 -    "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
    1.80 -    "/etc/xml/docbook-xml"
    1.81  
    1.82 -  # V4.2
    1.83 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.84 -    "-//OASIS//DTD DocBook XML V4.2//EN" \
    1.85 -    "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
    1.86 -    "/etc/xml/docbook-xml"
    1.87 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.88 -    "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
    1.89 -    "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
    1.90 -    "/etc/xml/docbook-xml"
    1.91 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.92 -    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
    1.93 -    "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
    1.94 -    "/etc/xml/docbook-xml"
    1.95 -  chroot "$1/" xmlcatalog --noout --add "public" \
    1.96 -    "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
    1.97 -    "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
    1.98 -    "/etc/xml/docbook-xml"
    1.99 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.100 -    "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
   1.101 -    "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
   1.102 -    "/etc/xml/docbook-xml"
   1.103 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.104 -    "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
   1.105 -    "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
   1.106 -    "/etc/xml/docbook-xml"
   1.107 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.108 -    "-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
   1.109 -    "http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod" \
   1.110 -    "/etc/xml/docbook-xml"
   1.111 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.112 -    "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
   1.113 -    "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
   1.114 -    "/etc/xml/docbook-xml"
   1.115 -  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   1.116 -    "http://www.oasis-open.org/docbook/xml/4.2" \
   1.117 -    "file:///usr/share/xml/docbook/xml-dtd-4.2" \
   1.118 -    "/etc/xml/docbook-xml"
   1.119 -  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   1.120 -    "http://www.oasis-open.org/docbook/xml/4.2" \
   1.121 -    "file:///usr/share/xml/docbook/xml-dtd-4.2" \
   1.122 -    "/etc/xml/docbook-xml"
   1.123 +	# V4.1.2
   1.124 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.125 +		"-//OASIS//DTD DocBook XML V4.1.2//EN" \
   1.126 +		"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
   1.127 +		"/etc//xml/docbook-xml"
   1.128 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.129 +		"-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
   1.130 +		"http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
   1.131 +		"/etc/xml/docbook-xml"
   1.132 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.133 +		"-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
   1.134 +		"http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
   1.135 +		"/etc/xml/docbook-xml"
   1.136 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.137 +		"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
   1.138 +		"http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
   1.139 +		"/etc/xml/docbook-xml"
   1.140 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.141 +		"-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
   1.142 +		"http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
   1.143 +		"/etc/xml/docbook-xml"
   1.144 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.145 +		"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
   1.146 +		"http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
   1.147 +		"/etc/xml/docbook-xml"
   1.148 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.149 +		"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
   1.150 +		"http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
   1.151 +		"/etc/xml/docbook-xml"
   1.152 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.153 +		"-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
   1.154 +		"http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
   1.155 +		"/etc/xml/docbook-xml"
   1.156 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.157 +		"-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
   1.158 +		"http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
   1.159 +		"/etc/xml/docbook-xml"
   1.160 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   1.161 +		"http://www.oasis-open.org/docbook/xml/4.1.2" \
   1.162 +		"file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
   1.163 +		"/etc/xml/docbook-xml"
   1.164 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   1.165 +		"http://www.oasis-open.org/docbook/xml/4.1.2" \
   1.166 +		"file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
   1.167 +		"/etc/xml/docbook-xml"
   1.168  
   1.169 -  # V4.3
   1.170 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.171 -    "-//OASIS//DTD DocBook XML V4.3//EN" \
   1.172 -    "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
   1.173 -    "/etc/xml/docbook-xml"
   1.174 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.175 -    "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
   1.176 -    "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
   1.177 -    "/etc/xml/docbook-xml"
   1.178 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.179 -    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
   1.180 -    "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
   1.181 -    "/etc/xml/docbook-xml"
   1.182 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.183 -    "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
   1.184 -    "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
   1.185 -    "/etc/xml/docbook-xml"
   1.186 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.187 -    "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
   1.188 -    "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
   1.189 -    "/etc/xml/docbook-xml"
   1.190 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.191 -    "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
   1.192 -    "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
   1.193 -    "/etc/xml/docbook-xml"
   1.194 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.195 -    "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
   1.196 -    "http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod" \
   1.197 -    "/etc/xml/docbook-xml"
   1.198 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.199 -    "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
   1.200 -    "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
   1.201 -    "/etc/xml/docbook-xml"
   1.202 -  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   1.203 -    "http://www.oasis-open.org/docbook/xml/4.3" \
   1.204 -    "file:///usr/share/xml/docbook/xml-dtd-4.3" \
   1.205 -    "/etc/xml/docbook-xml"
   1.206 -  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   1.207 -    "http://www.oasis-open.org/docbook/xml/4.3" \
   1.208 -    "file:///usr/share/xml/docbook/xml-dtd-4.3" \
   1.209 -    "/etc/xml/docbook-xml"
   1.210 +	# V4.2
   1.211 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.212 +		"-//OASIS//DTD DocBook XML V4.2//EN" \
   1.213 +		"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
   1.214 +		"/etc/xml/docbook-xml"
   1.215 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.216 +		"-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
   1.217 +		"http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
   1.218 +		"/etc/xml/docbook-xml"
   1.219 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.220 +		"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
   1.221 +		"http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
   1.222 +		"/etc/xml/docbook-xml"
   1.223 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.224 +		"-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
   1.225 +		"http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
   1.226 +		"/etc/xml/docbook-xml"
   1.227 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.228 +		"-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
   1.229 +		"http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
   1.230 +		"/etc/xml/docbook-xml"
   1.231 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.232 +		"-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
   1.233 +		"http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
   1.234 +		"/etc/xml/docbook-xml"
   1.235 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.236 +		"-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
   1.237 +		"http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod" \
   1.238 +		"/etc/xml/docbook-xml"
   1.239 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.240 +		"-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
   1.241 +		"http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
   1.242 +		"/etc/xml/docbook-xml"
   1.243 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   1.244 +		"http://www.oasis-open.org/docbook/xml/4.2" \
   1.245 +		"file:///usr/share/xml/docbook/xml-dtd-4.2" \
   1.246 +		"/etc/xml/docbook-xml"
   1.247 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   1.248 +		"http://www.oasis-open.org/docbook/xml/4.2" \
   1.249 +		"file:///usr/share/xml/docbook/xml-dtd-4.2" \
   1.250 +		"/etc/xml/docbook-xml"
   1.251  
   1.252 -  # V4.4
   1.253 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.254 -    "-//OASIS//DTD DocBook XML V4.4//EN" \
   1.255 -    "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
   1.256 -    "/etc/xml/docbook-xml"
   1.257 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.258 -    "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
   1.259 -    "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
   1.260 -    "/etc/xml/docbook-xml"
   1.261 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.262 -    "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
   1.263 -    "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
   1.264 -    "/etc/xml/docbook-xml"
   1.265 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.266 -    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
   1.267 -    "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
   1.268 -    "/etc/xml/docbook-xml"
   1.269 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.270 -    "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
   1.271 -    "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
   1.272 -    "/etc/xml/docbook-xml"
   1.273 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.274 -    "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
   1.275 -    "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
   1.276 -    "/etc/xml/docbook-xml"
   1.277 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.278 -    "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
   1.279 -    "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
   1.280 -    "/etc/xml/docbook-xml"
   1.281 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.282 -    "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
   1.283 -    "http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod" \
   1.284 -    "/etc/xml/docbook-xml"
   1.285 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.286 -    "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
   1.287 -    "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
   1.288 -    "/etc/xml/docbook-xml"
   1.289 -  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   1.290 -    "http://www.oasis-open.org/docbook/xml/4.4" \
   1.291 -    "file:///usr/share/xml/docbook/xml-dtd-4.4" \
   1.292 -    "/etc/xml/docbook-xml"
   1.293 -  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   1.294 -    "http://www.oasis-open.org/docbook/xml/4.4" \
   1.295 -    "file:///usr/share/xml/docbook/xml-dtd-4.4" \
   1.296 -    "/etc/xml/docbook-xml"
   1.297 +	# V4.3
   1.298 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.299 +		"-//OASIS//DTD DocBook XML V4.3//EN" \
   1.300 +		"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
   1.301 +		"/etc/xml/docbook-xml"
   1.302 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.303 +		"-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
   1.304 +		"http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
   1.305 +		"/etc/xml/docbook-xml"
   1.306 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.307 +		"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
   1.308 +		"http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
   1.309 +		"/etc/xml/docbook-xml"
   1.310 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.311 +		"-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
   1.312 +		"http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
   1.313 +		"/etc/xml/docbook-xml"
   1.314 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.315 +		"-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
   1.316 +		"http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
   1.317 +		"/etc/xml/docbook-xml"
   1.318 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.319 +		"-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
   1.320 +		"http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
   1.321 +		"/etc/xml/docbook-xml"
   1.322 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.323 +		"-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
   1.324 +		"http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod" \
   1.325 +		"/etc/xml/docbook-xml"
   1.326 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.327 +		"-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
   1.328 +		"http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
   1.329 +		"/etc/xml/docbook-xml"
   1.330 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   1.331 +		"http://www.oasis-open.org/docbook/xml/4.3" \
   1.332 +		"file:///usr/share/xml/docbook/xml-dtd-4.3" \
   1.333 +		"/etc/xml/docbook-xml"
   1.334 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   1.335 +		"http://www.oasis-open.org/docbook/xml/4.3" \
   1.336 +		"file:///usr/share/xml/docbook/xml-dtd-4.3" \
   1.337 +		"/etc/xml/docbook-xml"
   1.338  
   1.339 -  # V4.5
   1.340 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.341 -    "-//OASIS//DTD DocBook XML V4.5//EN" \
   1.342 -    "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
   1.343 -    "/etc/xml/docbook-xml"
   1.344 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.345 -    "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
   1.346 -    "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
   1.347 -    "/etc/xml/docbook-xml"
   1.348 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.349 -    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
   1.350 -    "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
   1.351 -    "/etc/xml/docbook-xml"
   1.352 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.353 -    "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
   1.354 -    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
   1.355 -    "/etc/xml/docbook-xml"
   1.356 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.357 -    "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
   1.358 -    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
   1.359 -    "/etc/xml/docbook-xml"
   1.360 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.361 -    "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
   1.362 -    "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
   1.363 -    "/etc/xml/docbook-xml"
   1.364 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.365 -    "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
   1.366 -    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
   1.367 -    "/etc/xml/docbook-xml"
   1.368 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.369 -    "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
   1.370 -    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
   1.371 -    "/etc/xml/docbook-xml"
   1.372 -  chroot "$1/" xmlcatalog --noout --add "public" \
   1.373 -    "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
   1.374 -    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
   1.375 -    "/etc/xml/docbook-xml"
   1.376 -  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   1.377 -    "http://www.oasis-open.org/docbook/xml/4.5" \
   1.378 -    "file:///usr/share/xml/docbook/xml-dtd-4.5" \
   1.379 -    "/etc/xml/docbook-xml"
   1.380 -  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   1.381 -    "http://www.oasis-open.org/docbook/xml/4.5" \
   1.382 -    "file:///usr/share/xml/docbook/xml-dtd-4.5" \
   1.383 -    "/etc/xml/docbook-xml"
   1.384 +	# V4.4
   1.385 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.386 +		"-//OASIS//DTD DocBook XML V4.4//EN" \
   1.387 +		"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
   1.388 +		"/etc/xml/docbook-xml"
   1.389 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.390 +		"-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
   1.391 +		"http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
   1.392 +		"/etc/xml/docbook-xml"
   1.393 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.394 +		"-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
   1.395 +		"http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
   1.396 +		"/etc/xml/docbook-xml"
   1.397 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.398 +		"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
   1.399 +		"http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
   1.400 +		"/etc/xml/docbook-xml"
   1.401 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.402 +		"-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
   1.403 +		"http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
   1.404 +		"/etc/xml/docbook-xml"
   1.405 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.406 +		"-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
   1.407 +		"http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
   1.408 +		"/etc/xml/docbook-xml"
   1.409 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.410 +		"-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
   1.411 +		"http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
   1.412 +		"/etc/xml/docbook-xml"
   1.413 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.414 +		"-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
   1.415 +		"http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod" \
   1.416 +		"/etc/xml/docbook-xml"
   1.417 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.418 +		"-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
   1.419 +		"http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
   1.420 +		"/etc/xml/docbook-xml"
   1.421 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   1.422 +		"http://www.oasis-open.org/docbook/xml/4.4" \
   1.423 +		"file:///usr/share/xml/docbook/xml-dtd-4.4" \
   1.424 +		"/etc/xml/docbook-xml"
   1.425 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   1.426 +		"http://www.oasis-open.org/docbook/xml/4.4" \
   1.427 +		"file:///usr/share/xml/docbook/xml-dtd-4.4" \
   1.428 +		"/etc/xml/docbook-xml"
   1.429  
   1.430 -  if [ -f "$1/etc/xml/catalog" ]; then
   1.431 -  	chroot "$1/" xmlcatalog --noout /etc/xml/catalog
   1.432 -  else
   1.433 -  	chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
   1.434 -  fi
   1.435 -  chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
   1.436 -    "-//OASIS//ENTITIES DocBook XML" \
   1.437 -    "file:///etc/xml/docbook-xml" \
   1.438 -    "/etc/xml/catalog"
   1.439 -  chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
   1.440 -    "-//OASIS//DTD DocBook XML" \
   1.441 -    "file:///etc/xml/docbook-xml" \
   1.442 -    "/etc/xml/catalog"
   1.443 -  chroot "$1/" xmlcatalog --noout --add "delegateSystem" \
   1.444 -    "http://www.oasis-open.org/docbook/" \
   1.445 -    "file:///etc/xml/docbook-xml" \
   1.446 -    "/etc/xml/catalog"
   1.447 -  chroot "$1/" xmlcatalog --noout --add "delegateURI" \
   1.448 -    "http://www.oasis-open.org/docbook/" \
   1.449 -    "file:///etc/xml/docbook-xml" \
   1.450 -    "/etc/xml/catalog"
   1.451 -	if [ "$1" ]; then
   1.452 +	# V4.5
   1.453 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.454 +		"-//OASIS//DTD DocBook XML V4.5//EN" \
   1.455 +		"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
   1.456 +		"/etc/xml/docbook-xml"
   1.457 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.458 +		"-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
   1.459 +		"file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
   1.460 +		"/etc/xml/docbook-xml"
   1.461 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.462 +		"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
   1.463 +		"file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
   1.464 +		"/etc/xml/docbook-xml"
   1.465 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.466 +		"-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
   1.467 +		"file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
   1.468 +		"/etc/xml/docbook-xml"
   1.469 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.470 +		"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
   1.471 +		"file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
   1.472 +		"/etc/xml/docbook-xml"
   1.473 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.474 +		"-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
   1.475 +		"file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
   1.476 +		"/etc/xml/docbook-xml"
   1.477 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.478 +		"-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
   1.479 +		"file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
   1.480 +		"/etc/xml/docbook-xml"
   1.481 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.482 +		"-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
   1.483 +		"file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
   1.484 +		"/etc/xml/docbook-xml"
   1.485 +	chroot "$1/" xmlcatalog --noout --add "public" \
   1.486 +		"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
   1.487 +		"file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
   1.488 +		"/etc/xml/docbook-xml"
   1.489 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   1.490 +		"http://www.oasis-open.org/docbook/xml/4.5" \
   1.491 +		"file:///usr/share/xml/docbook/xml-dtd-4.5" \
   1.492 +		"/etc/xml/docbook-xml"
   1.493 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   1.494 +		"http://www.oasis-open.org/docbook/xml/4.5" \
   1.495 +		"file:///usr/share/xml/docbook/xml-dtd-4.5" \
   1.496 +		"/etc/xml/docbook-xml"
   1.497 +
   1.498 +	if [ -f "$1/etc/xml/catalog" ]; then
   1.499 +		chroot "$1/" xmlcatalog --noout /etc/xml/catalog
   1.500 +	else
   1.501 +		chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
   1.502 +	fi
   1.503 +
   1.504 +	chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
   1.505 +		"-//OASIS//ENTITIES DocBook XML" \
   1.506 +		"file:///etc/xml/docbook-xml" \
   1.507 +		"/etc/xml/catalog"
   1.508 +	chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
   1.509 +		"-//OASIS//DTD DocBook XML" \
   1.510 +		"file:///etc/xml/docbook-xml" \
   1.511 +		"/etc/xml/catalog"
   1.512 +	chroot "$1/" xmlcatalog --noout --add "delegateSystem" \
   1.513 +		"http://www.oasis-open.org/docbook/" \
   1.514 +		"file:///etc/xml/docbook-xml" \
   1.515 +		"/etc/xml/catalog"
   1.516 +	chroot "$1/" xmlcatalog --noout --add "delegateURI" \
   1.517 +		"http://www.oasis-open.org/docbook/" \
   1.518 +		"file:///etc/xml/docbook-xml" \
   1.519 +		"/etc/xml/catalog"
   1.520 +	if [ -n "$1" ]; then
   1.521  		mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
   1.522  	fi
   1.523  }
   1.524  
   1.525 -post_remove() 
   1.526 +post_remove()
   1.527  {
   1.528  	xmlcatalog --noout --del file:///etc/xml/docbook-xml "$1/etc/xml/catalog"
   1.529  }
   1.530 -