2016-06-15 15:02:37 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
|
2016-07-04 14:20:42 +02:00
|
|
|
echo $0
|
2016-06-15 15:02:37 +02:00
|
|
|
set -e
|
|
|
|
|
2016-06-17 11:29:00 +02:00
|
|
|
NDK_BASE=$1
|
2016-06-15 15:02:37 +02:00
|
|
|
|
2016-06-17 11:29:00 +02:00
|
|
|
test -e $NDK_BASE || mkdir -p $NDK_BASE
|
|
|
|
cd $NDK_BASE
|
2016-06-15 15:02:37 +02:00
|
|
|
|
2016-06-17 11:29:00 +02:00
|
|
|
if [ ! -e $NDK_BASE/r9b ]; then
|
2016-07-13 17:47:58 +02:00
|
|
|
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
|
2016-06-15 15:02:37 +02:00
|
|
|
mv android-ndk-r9b r9b
|
|
|
|
fi
|
|
|
|
|
2016-06-17 11:29:00 +02:00
|
|
|
if [ ! -e $NDK_BASE/r10e ]; then
|
2016-07-13 17:47:58 +02:00
|
|
|
7zr x /vagrant/cache/android-ndk-r10e-linux-x86_64.bin > /dev/null
|
2016-06-15 15:02:37 +02:00
|
|
|
mv android-ndk-r10e r10e
|
|
|
|
fi
|
|
|
|
|
2016-08-12 20:24:54 +02:00
|
|
|
if [ ! -e $NDK_BASE/r11c ]; then
|
|
|
|
unzip /vagrant/cache/android-ndk-r11c-linux-x86_64.zip > /dev/null
|
|
|
|
mv android-ndk-r11c r11c
|
|
|
|
fi
|
|
|
|
|
2016-08-02 11:09:32 +02:00
|
|
|
if [ ! -e $NDK_BASE/r12b ]; then
|
|
|
|
unzip /vagrant/cache/android-ndk-r12b-linux-x86_64.zip > /dev/null
|
|
|
|
mv android-ndk-r12b r12b
|
|
|
|
fi
|
|
|
|
|
2016-11-25 21:10:44 +01:00
|
|
|
if [ ! -e $NDK_BASE/r13b ]; then
|
|
|
|
unzip /vagrant/cache/android-ndk-r13b-linux-x86_64.zip > /dev/null
|
|
|
|
mv android-ndk-r13b r13b
|
|
|
|
fi
|
|
|
|
|
2017-03-19 22:21:18 +01:00
|
|
|
if [ ! -e $NDK_BASE/r14 ]; then
|
|
|
|
unzip /vagrant/cache/android-ndk-r14-linux-x86_64.zip > /dev/null
|
|
|
|
mv android-ndk-r14 r14
|
|
|
|
fi
|
|
|
|
|
2016-06-17 11:29:00 +02:00
|
|
|
chmod -R a+rX $NDK_BASE/
|
|
|
|
find $NDK_BASE/ -type f -executable -print0 | xargs -0 chmod a+x
|