File: hmake.postinst

package info (click to toggle)
hmake 3.12-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 672 kB
  • ctags: 72
  • sloc: haskell: 3,406; sh: 1,235; makefile: 417; ansic: 19
file content (22 lines) | stat: -rw-r--r-- 603 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
#! /bin/sh
# postinst script for hmake

set -e

case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
        RC="/var/lib/hmake/debian/hmakerc"
        haskell-utils --add-trigger hmake GHC "hmake-config $RC add \"%p\""
        haskell-utils --add-trigger hmake NHC "hmake-config $RC add \"%p\""
        haskell-utils --add-untrigger hmake GHC "hmake-config $RC delete \"%p\""
        haskell-utils --add-untrigger hmake NHC "hmake-config $RC delete \"%p\""
    ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

#DEBHELPER#

exit 0