#pkgname=ghc ## arg 1: the new package version ## arg 2: the old package version pre_upgrade() { cat << EOF ==> Unregistering cabalized packages... EOF for package in $(perl -ne 'if ($_ =~ m/id: (.*)-.*/){print $1."\n";}' /usr/share/haskell/*/register.sh); do ghc-pkg unregister --force "$package" &>/dev/null; done cat << EOF ==> Done. EOF } ## arg 1: the new package version ## arg 2: the old package version 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 } # Doesn't appear to be needed: pacman changes ? #op=$1 #shift # vim:set ts=2 sw=2 et: