File: unclutter.postinst

package info (click to toggle)
unclutter 8-26
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: ansic: 1,758; makefile: 170; sh: 81
file content (27 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (3)
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
26
27
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

unclutter_update_alternatives () {
	update-alternatives --install /usr/bin/unclutter \
		unclutter /usr/bin/unclutter-classic 10 \
		--slave /usr/share/man/man1/unclutter.1.gz \
		unclutter.1.gz /usr/share/man/man1/unclutter-classic.1.gz
}

case "${1}" in
	configure|abort-upgrade|abort-remove|abort-deconfigure)
		unclutter_update_alternatives
		;;

	*)
		echo "postinst called with unknown argument \`${1}'" >&2
		exit 1
		;;
esac

#DEBHELPER#

exit 0