1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-08 10:10:10 +02:00
fdroidserver/buildserver/provision-android-ndk
Daniel Martí d375318550 all: remove 32-bit buildserver code
We dropped support for 32-bit, so remove all the now unused code and
references.
2016-07-13 16:47:58 +01:00

30 lines
671 B
Bash

#!/bin/bash
#
echo $0
set -e
NDK_BASE=$1
test -e $NDK_BASE || mkdir -p $NDK_BASE
cd $NDK_BASE
if [ ! -e $NDK_BASE/r9b ]; then
tar xjf /vagrant/cache/android-ndk-r9b-linux-x86_64.tar.bz2
tar xjf /vagrant/cache/android-ndk-r9b-linux-x86_64-legacy-toolchains.tar.bz2
mv android-ndk-r9b r9b
fi
if [ ! -e $NDK_BASE/r10e ]; then
7zr x /vagrant/cache/android-ndk-r10e-linux-x86_64.bin > /dev/null
mv android-ndk-r10e r10e
fi
if [ ! -e $NDK_BASE/r12b ]; then
7zr x /vagrant/cache/android-ndk-r12b-linux-x86_64.bin > /dev/null
mv android-ndk-r12b r12b
fi
chmod -R a+rX $NDK_BASE/
find $NDK_BASE/ -type f -executable -print0 | xargs -0 chmod a+x