mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
provision-android-ndk: do all configuration via args
This makes it so it is easy to reuse this script in other contexts, like in Docker, GitLab CI, etc.
This commit is contained in:
parent
d6c8ecc3bc
commit
28a4f9481a
2 changed files with 5 additions and 2 deletions
|
@ -1,16 +1,19 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# $1 is the root dir to install the NDKs into
|
||||
# $2 and after are the NDK releases to install
|
||||
|
||||
echo $0
|
||||
set -e
|
||||
set -x
|
||||
|
||||
NDK_BASE=$1
|
||||
shift
|
||||
|
||||
test -e $NDK_BASE || mkdir -p $NDK_BASE
|
||||
cd $NDK_BASE
|
||||
|
||||
for version in r21e r22b; do
|
||||
for version in $@; do
|
||||
if [ ! -e ${NDK_BASE}/${version} ]; then
|
||||
unzip /vagrant/cache/android-ndk-${version}-linux-x86_64.zip > /dev/null
|
||||
mv android-ndk-${version} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue