X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=haskell-stm%2Fhaskell-stm.install;fp=haskell-stm%2Fhaskell-stm.install;h=0c219fb26b419b93bc1c65106292e56999579d6c;hb=4e3bf2eca8f2df35be3539ba75e1a83ecd64c256;hp=0000000000000000000000000000000000000000;hpb=cc2b36d9071080464f32533b9233e013affdf7f9;p=archlinuxppc.git diff --git a/haskell-stm/haskell-stm.install b/haskell-stm/haskell-stm.install new file mode 100644 index 0000000..0c219fb --- /dev/null +++ b/haskell-stm/haskell-stm.install @@ -0,0 +1,22 @@ +HS_DIR=/usr/share/haskell/haskell-stm +post_install() { + ${HS_DIR}/register.sh + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh &> /dev/null + exit 0 +} +post_upgrade() { + ${HS_DIR}/register.sh + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_remove() { + ${HS_DIR}/unregister.sh +} +post_remove() { + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +op=$1 +shift +$op $*