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
|
2018-11-28 20:46:44 +01:00
|
|
|
set -x
|
2016-06-15 15:02:37 +02:00
|
|
|
|
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/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
|
|
|
|
|
2021-04-07 11:09:11 +02:00
|
|
|
for version in r11c r12b r13b r14b r15c r16b r17c r18b r19c r20b r21e r22b; do
|
2017-06-28 16:55:34 +02:00
|
|
|
if [ ! -e ${NDK_BASE}/${version} ]; then
|
|
|
|
unzip /vagrant/cache/android-ndk-${version}-linux-x86_64.zip > /dev/null
|
|
|
|
mv android-ndk-${version} ${version}
|
|
|
|
fi
|
|
|
|
done
|
2017-07-04 10:44:25 +02:00
|
|
|
|
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
|