File: postinst

package info (click to toggle)
menu 2.1.51
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,084 kB
  • sloc: cpp: 4,510; sh: 1,414; makefile: 225; perl: 104; ansic: 52
file content (23 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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#