summaryrefslogtreecommitdiff
path: root/staging/haskell-random/haskell-random.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-25 23:15:06 +0000
committerroot <root@rshg054.dnsready.net>2012-02-25 23:15:06 +0000
commite4a5730eb358cb0d78bc022204ddccac068c2bf2 (patch)
tree8dc9d2ac6b1313cb68be1a6c8b51500397f8b225 /staging/haskell-random/haskell-random.install
parent299e917c17619f800f0c21cf43209065b608223f (diff)
Sat Feb 25 23:15:06 UTC 2012
Diffstat (limited to 'staging/haskell-random/haskell-random.install')
-rw-r--r--staging/haskell-random/haskell-random.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/staging/haskell-random/haskell-random.install b/staging/haskell-random/haskell-random.install
new file mode 100644
index 000000000..b6d807e1a
--- /dev/null
+++ b/staging/haskell-random/haskell-random.install
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/haskell-random
+post_install() {
+ ${HS_DIR}/register.sh
+ (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_upgrade() {
+ ${HS_DIR}/unregister.sh
+}
+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)
+}