File: postinst

package info (click to toggle)
menu 2.1.5-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,476 kB
  • ctags: 1,251
  • sloc: cpp: 6,222; ansic: 2,306; sh: 453; makefile: 296; sed: 93
file content (25 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

set -e

# Package mantianers, 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/doc/menu/ for more info.

killall -KILL update-menus 2> /dev/null || true
chmod a+x /usr/bin/update-menus
update-menus 

install-info --quiet \
            --section "Information" "Information:" \
            --description="The Debian menu system" \
            /usr/info/menu.info


if [ "$1" = "configure" ]; then
    if [ -d /usr/doc -a ! -e /usr/doc/menu -a -d /usr/share/doc/menu ]; then
	ln -sf ../share/doc/menu /usr/doc/menu
    fi
fi