File: nhc98.postinst.in

package info (click to toggle)
nhc98 1.16-15
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 62,544 kB
  • ctags: 103,012
  • sloc: ansic: 831,077; haskell: 60,111; java: 4,116; makefile: 3,045; sh: 2,183; cpp: 212
file content (21 lines) | stat: -rw-r--r-- 598 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
#! /bin/sh -e
# postinst script for nhc98-doc
#
# see: dh_installdeb(1)

case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
        update-alternatives --install /usr/bin/haskell-compiler haskell-compiler /usr/bin/nhc98 300 --slave /usr/share/man/man1/haskell-compiler.1.gz haskell-compiler.1.gz /usr/share/man/man1/nhc98.1.gz
        haskell-utils --add-compiler /usr/bin/nhc98 NHC @VERSION@
        haskell-utils --add-compiler nhc98 NHC @VERSION@
    ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

#DEBHELPER#

exit 0