diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-16 23:05:00 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-16 23:05:00 -0400 |
commit | baec0fdf7e574290188ffc2d64a912bf9dd5fda2 (patch) | |
tree | 7536cf7266c5fff4f0590f83632b6e6b6969526a /standalone/android/install-haskell-packages | |
parent | c3ea7e50f0102008242ffeda974ed9eb9868c8d7 (diff) |
begin work on installing TH-using dependencies of webapp, for standalone armel build
Will move common patches out of android/haskell-patches.
Diffstat (limited to 'standalone/android/install-haskell-packages')
-rwxr-xr-x | standalone/android/install-haskell-packages | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/standalone/android/install-haskell-packages b/standalone/android/install-haskell-packages index a8d4a18f9..b78eda83a 100755 --- a/standalone/android/install-haskell-packages +++ b/standalone/android/install-haskell-packages @@ -35,12 +35,14 @@ patched () { git config user.email dummy@example.com git add . git commit -m "pre-patched state of $pkg" - for patch in ../../haskell-patches/${pkg}_*; do - echo trying $patch - if ! patch -p1 < $patch; then - echo "failed to apply $patch" - echo "please resolve this, replace the patch with a new version, and exit the subshell to continue" - $SHELL + for patch in ../../haskell-patches/${pkg}_* ../../../haskell-patches/no-th/${pkg}_*; do + if [ -e "$patch" ]; then + echo trying $patch + if ! patch -p1 < $patch; then + echo "failed to apply $patch" + echo "please resolve this, replace the patch with a new version, and exit the subshell to continue" + $SHELL + fi fi done cabalinstall "$@" |