From b89b18ab952e483ac5d5eb31aaa7467fdb9f0ee9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 14 Oct 2014 16:02:02 -0400 Subject: make cabal.config be available whenever cabal install is run Ensures the constraints are consistently applied. --- standalone/android/install-haskell-packages | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'standalone/android') 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 () { -- cgit v1.2.3