File: kazehakase.postinst

package info (click to toggle)
kazehakase 0.5.8-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,184 kB
  • ctags: 7,837
  • sloc: ansic: 64,119; sh: 19,622; cpp: 12,601; ruby: 1,590; makefile: 1,437; xml: 464
file content (30 lines) | stat: -rw-r--r-- 703 bytes parent folder | download
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
28
29
30
#! /bin/sh
# postinst script for the Debian kazehakase package
#
# see: dh_installdeb(1)

set -e

case "$1" in
    configure|abort-upgrade)
	# update alternatives for x-www-browser and gnome-www-browser
	for alt in x-www-browser gnome-www-browser; do
	  update-alternatives --install /usr/bin/$alt \
	    $alt /usr/bin/kazehakase 70 \
	    --slave /usr/share/man/man1/$alt.1.gz \
	    $alt.1.gz /usr/share/man/man1/kazehakase.1.gz
	done
    ;;
    abort-remove|abort-deconfigure)
    ;;

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

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#