File: postinst

package info (click to toggle)
es 0.90beta1-9
  • links: PTS
  • area: main
  • in suites: woody
  • size: 748 kB
  • ctags: 981
  • sloc: ansic: 8,079; sh: 1,536; makefile: 152; yacc: 109
file content (19 lines) | stat: -rw-r--r-- 431 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

case "$1" in
       configure|abort-upgrade|abort-remove|abort-deconfigure)
               #
               #       Update the menu system
               #
	       if [ -x /usr/bin/update-menus ]; then update-menus; fi
               ;;
esac

# work around dpkg bug
if [ "$1" = "configure" ]; then
	if [ -d /usr/doc -a ! -e /usr/doc/es -a -d /usr/share/doc/es ]; then
		ln -sf ../share/doc/es /usr/doc/es
	fi
fi