diff options
author | Joey Hess <joey@kitenet.net> | 2014-10-14 16:02:02 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-10-14 16:02:02 -0400 |
commit | b89b18ab952e483ac5d5eb31aaa7467fdb9f0ee9 (patch) | |
tree | 2de1e7ac9319ec27890d9ea4e1d4345a40332176 /standalone | |
parent | 83fa4cffcde9df7d3963eaff70f4d581c93bbf9f (diff) |
make cabal.config be available whenever cabal install is run
Ensures the constraints are consistently applied.
Diffstat (limited to 'standalone')
-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 () { |