diff options
Diffstat (limited to 'community/haskell-binary/haskell-binary.install')
-rw-r--r-- | community/haskell-binary/haskell-binary.install | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/community/haskell-binary/haskell-binary.install b/community/haskell-binary/haskell-binary.install index 0084ebef8..844b8a67c 100644 --- a/community/haskell-binary/haskell-binary.install +++ b/community/haskell-binary/haskell-binary.install @@ -1,18 +1,24 @@ HS_DIR=usr/share/haskell/haskell-binary -post_install() { - ${HS_DIR}/register.sh - (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) -} + pre_upgrade() { ${HS_DIR}/unregister.sh } + +post_remove() { + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} + post_upgrade() { ${HS_DIR}/register.sh - (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) + post_remove } -pre_remove() { - ${HS_DIR}/unregister.sh + +post_install() { + post_upgrade } -post_remove() { - (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) + +pre_remove() { + pre_upgrade } + +# vim:set ts=2 sw=2 et: |