summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libglade/glade.install
blob: c98d2ed5072f85712cad48878c2d2b30d07414ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
post_install() {
  if [ ! -d etc/xml ]; then
    mkdir -p etc/xml
  fi
  if [ ! -e etc/xml/catalog ]; then
    xmlcatalog --noout --create etc/xml/catalog
  fi
  xmlcatalog --noout --add "system" \
    "http://glade.gnome.org/glade-2.0.dtd" \
    /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog
}

pre_upgrade() {
  post_remove
}

post_upgrade() {
  post_install $1
}

# arg 1:  the old package version
post_remove() {
  xmlcatalog --noout --del \
    /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog
}

op=$1
shift

$op $*