summaryrefslogtreecommitdiff
path: root/community-testing/haddock/haddock.install
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/haddock/haddock.install')
-rw-r--r--community-testing/haddock/haddock.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/community-testing/haddock/haddock.install b/community-testing/haddock/haddock.install
new file mode 100644
index 000000000..278da355e
--- /dev/null
+++ b/community-testing/haddock/haddock.install
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/haddock
+post_install() {
+ ${HS_DIR}/register.sh &> /dev/null
+ (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) &> /dev/null
+}
+pre_upgrade() {
+ ${HS_DIR}/unregister.sh &> /dev/null
+}
+post_upgrade() {
+ ${HS_DIR}/register.sh &> /dev/null
+ (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) &> /dev/null
+}
+pre_remove() {
+ ${HS_DIR}/unregister.sh &> /dev/null
+}
+post_remove() {
+ (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) &> /dev/null
+}