diff options
Diffstat (limited to 'standalone/android')
-rwxr-xr-x | standalone/android/install-haskell-packages | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/standalone/android/install-haskell-packages b/standalone/android/install-haskell-packages index 94adefd07..376ad165f 100755 --- a/standalone/android/install-haskell-packages +++ b/standalone/android/install-haskell-packages @@ -30,11 +30,6 @@ setupcabal () { export PATH } -cabalinstall () { - echo cabal install "$@" "$cabalopts" - eval cabal install "$@" "$cabalopts" -} - patched () { pkg=$1 ver=$2 @@ -62,17 +57,22 @@ patched () { fi fi done - cabalinstall + + ln -sf ../../cabal.config + cabal install "$@" "$cabalopts" + rm -f cabal.config + rm -rf $pkg* cd .. } installgitannexdeps () { - rm -f git-annex.cabal - ln -s ../../git-annex.cabal - echo cabal install --only-dependencies "$@" + pushd + cd ../.. + ln -sf standalone/android/cabal.config cabal install --only-dependencies "$@" - rm -f git-annex.cabal + rm -f cabal.config + popd } install_pkgs () { |