chiark / gitweb /
makebuildserver: do not provision excessive NDKs
authorrelan <email@hidden>
Wed, 14 Feb 2018 06:01:37 +0000 (09:01 +0300)
committerrelan <email@hidden>
Wed, 14 Feb 2018 06:11:40 +0000 (09:11 +0300)
When a new minor version of an NDK is released, it replaces an older one,
e.g. r16 with r16b (see commit 6f295cb). But old NDK package remains in
the cache and provisioning script unpacks it too as it matches the mask.

Fix NDK provisioning to unzip only while-listed versions.

buildserver/provision-android-ndk

index e2a9a6516cd5b0659d779e057bd841ab692cceb2..8e9724bc57702e5ca2344d651d80bc0089f485b6 100644 (file)
@@ -14,8 +14,7 @@ if [ ! -e $NDK_BASE/r10e ]; then
     mv android-ndk-r10e r10e
 fi
 
-for f in /vagrant/cache/android-ndk-r[1-9][0-9]*-linux-x86_64.zip; do
-    version=`echo $f |sed  's,.*\(r[1-9][0-9][a-z]\?\).*,\1,'`
+for version in r11c r12b r13b r14b r15c r16b; do
     if [ ! -e ${NDK_BASE}/${version} ]; then
         unzip /vagrant/cache/android-ndk-${version}-linux-x86_64.zip > /dev/null
         mv android-ndk-${version} ${version}