mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +02:00
buildserver: support any recent NDK version, with stable filenames
Now that the download file name and type seems to have stabilized, I think we no longer need to manually specify each new added release in this script to unpack. closes #331
This commit is contained in:
parent
df99c85ca6
commit
9a90a5071d
@ -20,30 +20,13 @@ if [ ! -e $NDK_BASE/r10e ]; then
|
|||||||
mv android-ndk-r10e r10e
|
mv android-ndk-r10e r10e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e $NDK_BASE/r11c ]; then
|
for f in /vagrant/cache/android-ndk-r[1-9][0-9]*-linux-x86_64.zip; do
|
||||||
unzip /vagrant/cache/android-ndk-r11c-linux-x86_64.zip > /dev/null
|
version=`echo $f |sed 's,.*\(r[1-9][0-9][a-z]\?\).*,\1,'`
|
||||||
mv android-ndk-r11c r11c
|
if [ ! -e ${NDK_BASE}/${version} ]; then
|
||||||
fi
|
unzip /vagrant/cache/android-ndk-${version}-linux-x86_64.zip > /dev/null
|
||||||
|
mv android-ndk-${version} ${version}
|
||||||
if [ ! -e $NDK_BASE/r12b ]; then
|
fi
|
||||||
unzip /vagrant/cache/android-ndk-r12b-linux-x86_64.zip > /dev/null
|
done
|
||||||
mv android-ndk-r12b r12b
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -e $NDK_BASE/r13b ]; then
|
|
||||||
unzip /vagrant/cache/android-ndk-r13b-linux-x86_64.zip > /dev/null
|
|
||||||
mv android-ndk-r13b r13b
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -e $NDK_BASE/r14b ]; then
|
|
||||||
unzip /vagrant/cache/android-ndk-r14b-linux-x86_64.zip > /dev/null
|
|
||||||
mv android-ndk-r14b r14b
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -e $NDK_BASE/r15b ]; then
|
|
||||||
unzip /vagrant/cache/android-ndk-r15b-linux-x86_64.zip > /dev/null
|
|
||||||
mv android-ndk-r15b r15b
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod -R a+rX $NDK_BASE/
|
chmod -R a+rX $NDK_BASE/
|
||||||
find $NDK_BASE/ -type f -executable -print0 | xargs -0 chmod a+x
|
find $NDK_BASE/ -type f -executable -print0 | xargs -0 chmod a+x
|
||||||
|
Loading…
Reference in New Issue
Block a user