summaryrefslogtreecommitdiff
path: root/extra/ghc/ghc.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ghc/ghc.install')
-rw-r--r--extra/ghc/ghc.install19
1 files changed, 5 insertions, 14 deletions
diff --git a/extra/ghc/ghc.install b/extra/ghc/ghc.install
index 7d56083bc..c0200e4a6 100644
--- a/extra/ghc/ghc.install
+++ b/extra/ghc/ghc.install
@@ -1,19 +1,10 @@
-pkgname=ghc
-
pre_upgrade() {
- cat << EOF
- ==> Unregistering cabalized packages...
-EOF
- cd /usr/share/haskell/ && (for a in *; do ghc-pkg unregister --force $a &> /dev/null; done; cd - > /dev/null )
- cat << EOF
- ==> Done.
-EOF
-
+ echo '==> Unregistering cabalized packages...'
+ [[ -d /usr/share/haskell ]] && find /usr/share/haskell -maxdepth 2 -name 'unregister.sh' -exec {} \;
+ echo '==> Done.'
}
post_upgrade() {
- cat << EOF
- ==> All cabalized and yaourt-installed packages need to be reinstalled now.
- ==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages.
-EOF
+ echo '==> All cabalized packages need to be reinstalled now.'
+ echo '==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages.'
}