[Pkg-haskell-commits] darcs: haskell-hoogle: Automatically run update-hoogle after install

kiwamu at debian.or.jp kiwamu at debian.or.jp
Tue Sep 11 10:17:46 UTC 2012


Tue Sep 11 10:11:09 UTC 2012  kiwamu at debian.or.jp
  * Automatically run update-hoogle after install
  Ignore-this: 3f728874bfa1f8e89c2a8c6eb8f1e6af

    A ./hoogle.postinst

Tue Sep 11 10:11:09 UTC 2012  kiwamu at debian.or.jp
  * Automatically run update-hoogle after install
  Ignore-this: 3f728874bfa1f8e89c2a8c6eb8f1e6af
diff -rN -u old-haskell-hoogle//hoogle.postinst new-haskell-hoogle//hoogle.postinst
--- old-haskell-hoogle//hoogle.postinst	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-hoogle//hoogle.postinst	2012-09-11 10:17:45.957822139 +0000
@@ -0,0 +1,28 @@
+#!/bin/sh
+## ----------------------------------------------------------------------
+## debian/postinst : postinstall script for hoogle
+## ----------------------------------------------------------------------
+
+## ----------------------------------------------------------------------
+set -e
+
+## ----------------------------------------------------------------------
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+## ----------------------------------------------------------------------
+if [ "$1" = "configure" ]
+then
+
+    ## ------------------------------------------------------------------
+    ## create /var/lib/hoogle/databases
+    [ -d /var/lib/hoogle/databases ] && /usr/sbin/update-hoogle
+
+fi
+
+## ----------------------------------------------------------------------
+exit 0
+
+## ----------------------------------------------------------------------





More information about the Pkg-haskell-commits mailing list