File: postinst

package info (click to toggle)
upx-ucl 4.2.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,168 kB
  • sloc: ansic: 99,906; cpp: 60,585; asm: 32,273; python: 1,573; makefile: 1,353; sh: 1,143
file content (22 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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-ucl 30
fi

#DEBHELPER#

exit 0