File: postinst

package info (click to toggle)
upx-nrv 3.01-2
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 1,328 kB
  • ctags: 4
  • sloc: makefile: 46; sh: 16
file content (23 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (4)
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

update_alt()
{
# arguments: link program priority
  if ! update-alternatives --display "$1" | grep -q "^/usr/bin/$2" ; then
       update-alternatives --install "/usr/bin/$1" "$1" "/usr/bin/$2" "$3" \
		--slave "/usr/share/man/man1/$1.1.gz" "$1.1.gz" \
					"/usr/share/man/man1/$2.1.gz"
  fi
}


if [ "$1" = "configure" ] ; then
	update_alt upx upx-nrv 10
fi

#DEBHELPER#

exit 0