OCaml 4.13.1 rebuild
[arch-packages.git] / docbook-sgml31 / trunk / docbook-sgml31.install
blob30f028a6e4713e39924ba7e77519d0e8893d41d9
1 # arg 1:  the new package version
2 post_install() {
3         add_catalog "${1%-*}"
6 # arg 1:  the new package version
7 # arg 2:  the old package version
8 pre_upgrade() {
9         remove_catalog "${2%-*}"
12 # arg 1:  the new package version
13 # arg 2:  the old package version
14 post_upgrade() {
15         add_catalog "${1%-*}"
18 # arg 1:  the old package version
19 pre_remove() {
20         remove_catalog "${1%-*}"
22 add_catalog() {
23         install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
24                 /usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
26         install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
27                 /etc/sgml/sgml-docbook.cat > /dev/null 2>&1
30 remove_catalog() {
31         install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
32                 /usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
34         install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
35                 /etc/sgml/sgml-docbook.cat > /dev/null 2>&1
37 op=$1
38 shift
39 $op "$@"
41 # vim:set syntax=sh ts=4 sw=4 noet: