updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / docbook-xml-dtd / docbook-xml-dtd.install
blob1d2ca545395de18c0f66a25fac11f956970068ca
1 pre_install() {
2 rm -rf /usr/share/xml/docbook/xml-dtd-4.1.2-9
3 rm -f /etc/xml/docbook /etc/xml/catalog
4   
6 post_install() {
8  /usr/bin/build-docbook-catalog 
10  /usr/bin/install-catalog --add \
11                       /etc/sgml/xml-docbook-4.4.cat \
12                       /etc/sgml/sgml-docbook.cat
14  /usr/bin/install-catalog --add \
15                      /etc/sgml/xml-docbook-4.4.cat \
16                      /usr/share/sgml/docbook/xml-dtd-4.4/docbook.cat
17  /usr/bin/install-catalog --add \
18                      /etc/sgml/xml-docbook-4.4.cat \
19                      /usr/share/sgml/docbook/xml-dtd-4.4/catalog
22 post_upgrade() {
23   post_install $1
26 post_remove() {
27   /usr/bin/deleteDocBookCatalog
29  /usr/bin/install-catalog --add \
30                       /etc/sgml/xml-docbook-4.4.cat \
31                       /etc/sgml/sgml-docbook.cat
33  /usr/bin/install-catalog --add \
34                      /etc/sgml/xml-docbook-4.4.cat \
35                      /usr/share/sgml/docbook/xml-dtd-4.4/docbook.cat
36  /usr/bin/install-catalog --add \
37                      /etc/sgml/xml-docbook-4.4.cat \
38                      /usr/share/sgml/docbook/xml-dtd-4.4/catalog
41 op=$1
42 shift
43 $op $*