From baec0fdf7e574290188ffc2d64a912bf9dd5fda2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 16 Dec 2013 23:05:00 -0400 Subject: begin work on installing TH-using dependencies of webapp, for standalone armel build Will move common patches out of android/haskell-patches. --- standalone/android/install-haskell-packages | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'standalone/android/install-haskell-packages') 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 "$@" -- cgit v1.2.3