From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/bluefish/bluefish.install | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 extra/bluefish/bluefish.install (limited to 'extra/bluefish/bluefish.install') diff --git a/extra/bluefish/bluefish.install b/extra/bluefish/bluefish.install new file mode 100644 index 000000000..c5464fa9d --- /dev/null +++ b/extra/bluefish/bluefish.install @@ -0,0 +1,28 @@ +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 'delegateURI' \ + 'http://bluefish.openoffice.nl/ns/bflang/2.0/' /usr/share/xml/bluefish \ + etc/xml/catalog + + update-desktop-database -q + update-mime-database usr/share/mime > /dev/null + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + post_remove +} + +post_upgrade() { + post_install +} + +post_remove() { + xmlcatalog --noout --del \ + /usr/share/xml/bluefish etc/xml/catalog +} -- cgit v1.2.3-54-g00ecf