summaryrefslogtreecommitdiff
path: root/standalone
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-10-14 16:02:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-10-14 16:02:02 -0400
commitb89b18ab952e483ac5d5eb31aaa7467fdb9f0ee9 (patch)
tree2de1e7ac9319ec27890d9ea4e1d4345a40332176 /standalone
parent83fa4cffcde9df7d3963eaff70f4d581c93bbf9f (diff)
make cabal.config be available whenever cabal install is run
Ensures the constraints are consistently applied.
Diffstat (limited to 'standalone')
-rwxr-xr-xstandalone/android/install-haskell-packages20
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 () {