summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..387bfd9
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+# Package maintainers, DO NOT use this as an example for how to
+# call update-menus in your postinst! This script does several things
+# you shouldn't do, and doesn't do other things that you should
+# do. See /usr/share/doc/menu/ for more info.
+
+case "$1" in
+triggered)
+ # This is triggered by any installation of a menu file and by
+ # any call to update-menus made in a package maintainer script.
+ test -x /usr/bin/update-menus && update-menus --trigger
+ exit 0
+;;
+*)
+ chmod a+x /usr/bin/update-menus
+ update-menus
+;;
+esac
+
+#DEBHELPER#