File: postinst

package info (click to toggle)
tworld 1.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,620 kB
  • ctags: 1,407
  • sloc: ansic: 12,442; perl: 2,465; makefile: 191; sh: 16
file content (20 lines) | stat: -rw-r--r-- 409 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e
# postinst script for tworld
# copyright 2006-2008 by Gerfried Fuchs <rhonda@debian.at>
# Licenced BSD style

if [ "$1" != configure ]; then
	exit 0
fi

if dpkg --compare-versions "$2" le-nl "1.3.0-5"; then
	if [ -d /usr/share/doc/tworld ]; then
		if rmdir /usr/share/doc/tworld; then
			ln -s tworld-data /usr/share/doc/tworld
		fi
	fi
fi

if [ -x /usr/bin/update-menus ]; then
	update-menus
fi