mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			580 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			580 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/bash
 | 
						|
#
 | 
						|
 | 
						|
echo $0
 | 
						|
set -e
 | 
						|
set -x
 | 
						|
 | 
						|
NDK_BASE=$1
 | 
						|
 | 
						|
test -e $NDK_BASE || mkdir -p $NDK_BASE
 | 
						|
cd $NDK_BASE
 | 
						|
 | 
						|
if [ ! -e $NDK_BASE/r10e ]; then
 | 
						|
    7zr x /vagrant/cache/android-ndk-r10e-linux-x86_64.bin > /dev/null
 | 
						|
    mv android-ndk-r10e r10e
 | 
						|
fi
 | 
						|
 | 
						|
for version in r11c r12b r13b r14b r15c r16b r17c r18b r19c; do
 | 
						|
    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
 | 
						|
 | 
						|
chmod -R a+rX $NDK_BASE/
 | 
						|
find $NDK_BASE/ -type f -executable -print0 | xargs -0 chmod a+x
 |