[Pkg-haskell-commits] darcs: haskell-hoogle: Clean up /var/lib/hoogle/databases dir on purge
kiwamu at debian.or.jp
kiwamu at debian.or.jp
Sun Sep 9 10:33:39 UTC 2012
Sun Sep 9 10:30:10 UTC 2012 kiwamu at debian.or.jp
* Clean up /var/lib/hoogle/databases dir on purge
Ignore-this: ee34cccddad9401c9120c9509dee42e1
A ./hoogle.postrm
Sun Sep 9 10:30:10 UTC 2012 kiwamu at debian.or.jp
* Clean up /var/lib/hoogle/databases dir on purge
Ignore-this: ee34cccddad9401c9120c9509dee42e1
diff -rN -u old-haskell-hoogle//hoogle.postrm new-haskell-hoogle//hoogle.postrm
--- old-haskell-hoogle//hoogle.postrm 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-hoogle//hoogle.postrm 2012-09-09 10:33:39.594658120 +0000
@@ -0,0 +1,22 @@
+#!/bin/sh
+## ----------------------------------------------------------------------
+## debian/postrm : postremoval script for hoogle
+## ----------------------------------------------------------------------
+
+## ----------------------------------------------------------------------
+set -e
+
+## ----------------------------------------------------------------------
+if [ "$1" = "purge" ]
+then
+
+ ## ------------------------------------------------------------------
+ ## remove /var/lib/hoogle
+ [ -d /var/lib/hoogle/databases ] && rm -rf /var/lib/hoogle/databases
+
+fi
+
+## ----------------------------------------------------------------------
+exit 0
+
+## ----------------------------------------------------------------------
More information about the Pkg-haskell-commits
mailing list