updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / sgml-common / sgml-common.install
blob0ae54f36e7195fa9a5efd43f8644fec566f6f961
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-ent.cat \
36                 /usr/share/sgml/sgml-iso-entities-8879.1986/catalog
38         install-catalog --add /etc/sgml/sgml-docbook.cat \
39                 /etc/sgml/sgml-ent.cat
42 remove_catalog() {
43         install-catalog --remove /etc/sgml/sgml-ent.cat \
44                 /usr/share/sgml/sgml-iso-entities-8879.1986/catalog
46         install-catalog --remove /etc/sgml/sgml-docbook.cat \
47                 /etc/sgml/sgml-ent.cat
50 op=$1
51 shift
52 $op "$@"
54 # vim:set syntax=sh ts=4 sw=4 noet: