summaryrefslogtreecommitdiff
path: root/sysui/desktop/debian/postrm
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-06-21 14:03:33 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-06-21 14:03:33 +0000
commita2896f14787d5d2cc43d2e26c63615268fb45516 (patch)
treeaa0b4b9296fe618595fead6164d11cb8ed94e1f3 /sysui/desktop/debian/postrm
parent0f1d46e6aa4987cf81ee8067e8ff71442a956bf8 (diff)
INTEGRATION: CWS sysui08 (1.1.2); FILE ADDED
2005/06/20 11:57:52 obr 1.1.2.1: #i48992# debian menu integration
Diffstat (limited to 'sysui/desktop/debian/postrm')
-rw-r--r--sysui/desktop/debian/postrm15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysui/desktop/debian/postrm b/sysui/desktop/debian/postrm
new file mode 100644
index 000000000000..577221867455
--- /dev/null
+++ b/sysui/desktop/debian/postrm
@@ -0,0 +1,15 @@
+#!/bin/sh
+# run always - both when upgrading as well as when erasing the package.
+# Make sure this works when converted to .deb using alien.
+if [ "$1" != "purge" ]; then
+ if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database /usr/share/mime
+ fi
+ if [ -x /usr/bin/update-desktop-database ]; then
+ update-desktop-database /usr/share/applications
+ fi
+ if [ -x /usr/bin/update-menus ]; then
+ update-menus
+ fi
+fi
+exit 0 \ No newline at end of file