diff options
Diffstat (limited to 'abs/core/libglade/glade.install')
-rw-r--r-- | abs/core/libglade/glade.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/core/libglade/glade.install b/abs/core/libglade/glade.install new file mode 100644 index 0000000..c98d2ed --- /dev/null +++ b/abs/core/libglade/glade.install @@ -0,0 +1,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 $* |