From 325c198a4e7323b0a1b039dfa0a39716528edfb9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 25 May 2014 01:37:22 -0400 Subject: fix abiversion lookup to work when propellor is running this script --- standalone/android/buildchroot-inchroot-asuser | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/standalone/android/buildchroot-inchroot-asuser b/standalone/android/buildchroot-inchroot-asuser index 2358636ef..fd27f3fc5 100755 --- a/standalone/android/buildchroot-inchroot-asuser +++ b/standalone/android/buildchroot-inchroot-asuser @@ -3,6 +3,14 @@ set -e set -x +# Put in /tmp by buildchroot, but when bootstrapping with propellor, +# this is run inside a checked out git-annex tree. +if [ -e /tmp/abiversion ]; then + ABIVERSION=$(cat /tmp/abiversion) +else + ABIVERSION=$(cat standalone/android/abiversion) +fi + cd rm -rf .ghc .cabal .android cabal update @@ -30,7 +38,7 @@ mv adt-bundle-linux-x86-* adt-bundle-linux-x86 rm -rf adt-bundle-linux-x86/eclipse # The git-annex android Makefile needs this cc symlink. -ln -s arm-linux-androideabi-gcc $HOME/.ghc/$(cat /tmp/abiversion)/bin/cc +ln -s arm-linux-androideabi-gcc $HOME/.ghc/$ABIVERSION/bin/cc git config --global user.email androidbuilder@example.com git config --global user.name androidbuilder -- cgit v1.2.3