updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / docbook-sgml / docbook-sgml.install
blob67675e82c97d457d3b2a83da27168e78a328b8ea
1 # arg 1:  the new package version
2 pre_install() {
3         /bin/true
6 # arg 1:  the new package version
7 post_install() {
8         add_catalog "${1%-*}"
11 # arg 1:  the new package version
12 # arg 2:  the old package version
13 pre_upgrade() {
14         remove_catalog "${2%-*}"
17 # arg 1:  the new package version
18 # arg 2:  the old package version
19 post_upgrade() {
20         add_catalog "${1%-*}"
23 # arg 1:  the old package version
24 pre_remove() {
25         remove_catalog "${1%-*}"
28 # arg 1:  the old package version
29 post_remove() {
30         /bin/true
34 add_catalog() {
35         install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
36                 /usr/share/sgml/docbook-sgml-$1/catalog
38         install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
39                 /etc/sgml/sgml-docbook.cat
42 remove_catalog() {
43         install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
44                 /usr/share/sgml/docbook-sgml-$1/catalog
46         install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
47                 /etc/sgml/sgml-docbook.cat
50 op=$1
51 shift
52 $op "$@"
54 # vim:set syntax=sh ts=4 sw=4 noet: