db-move: moved gcr from [testing] to [extra] (x86_64)
[arch-packages.git] / sgml-common / trunk / sgml-common.install
blob4bec10965818b0050edabb61e57d8560fba9ed9c
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 > /dev/null 2>&1
38         install-catalog --add /etc/sgml/sgml-docbook.cat \
39                 /etc/sgml/sgml-ent.cat > /dev/null 2>&1
42 remove_catalog() {
43         install-catalog --remove /etc/sgml/sgml-ent.cat \
44                 /usr/share/sgml/sgml-iso-entities-8879.1986/catalog > /dev/null 2>&1
46         install-catalog --remove /etc/sgml/sgml-docbook.cat \
47                 /etc/sgml/sgml-ent.cat > /dev/null 2>&1
50 op=$1
51 shift
52 $op "$@"
54 # vim:set syntax=sh ts=4 sw=4 noet: