Ajout : vim/install : plugin recover.
[tool/hledger.git] / script / ghc-pkg-reset
1 #!/bin/sh -eux
2
3 # DESCRIPTION: remove all installed GHC/cabal packages,
4 # leaving ~/.cabal binaries and docs in place.
5 # When all else fails, use this to get out of dependency hell and start over.
6 read -p 'erasing all your user ghc and cabal packages - are you sure (y/n) ? ' ans
7 test x$ans == xy && ( \
8 echo 'erasing directories under ~/.ghc'; rm -rf `find ~/.ghc -maxdepth 1 -type d`; \
9 echo 'erasing ~/.cabal/lib'; rm -rf ~/.cabal/lib; \
10 # echo 'erasing ~/.cabal/packages'; rm -rf ~/.cabal/packages; \
11 # echo 'erasing ~/.cabal/share'; rm -rf ~/.cabal/share; \
12 )