summaryrefslogtreecommitdiff
path: root/standalone/android/clean-haskell-packages
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-09-22 17:30:04 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-09-22 17:30:04 -0400
commitb0ac494fa5987e611985d87d2276064a45579469 (patch)
treec4c17f5157eb183859dba922d5f428cbe3ad3a5f /standalone/android/clean-haskell-packages
parent2d0e22dab1551deffe187d0e246d70eae5fedbbe (diff)
add
Diffstat (limited to 'standalone/android/clean-haskell-packages')
-rwxr-xr-xstandalone/android/clean-haskell-packages6
1 files changed, 6 insertions, 0 deletions
diff --git a/standalone/android/clean-haskell-packages b/standalone/android/clean-haskell-packages
new file mode 100755
index 000000000..bffdf00bb
--- /dev/null
+++ b/standalone/android/clean-haskell-packages
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Removes all currently installed cross-compiled haskell packages
+# except those part of ghc.
+# Useful if the build failed.
+rm -f $(grep -l $HOME/.ghc/android-14/arm-linux-androideabi-4.7/.cabal/lib/ $HOME/.ghc/android-14/arm-linux-androideabi-4.7/lib/*-ghc-*/package.conf.d/*.conf)
+$HOME/.ghc/android-14/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/ghc-pkg recache