new stuff
[archlinuxppc.git] / haskell-stm / haskell-stm.install
1 HS_DIR=/usr/share/haskell/haskell-stm
2 post_install() {
3   ${HS_DIR}/register.sh
4   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
5 }
6 pre_upgrade() {
7   ${HS_DIR}/unregister.sh &> /dev/null
8   exit 0
9 }
10 post_upgrade() {
11   ${HS_DIR}/register.sh
12   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
13 }
14 pre_remove() {
15   ${HS_DIR}/unregister.sh
16 }
17 post_remove() {
18   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
19 }
20 op=$1
21 shift
22 $op $*