Lines Matching refs:version
3 # Bash script to assert that the current version of the NDK is at least the
4 # specified version. Prints 'true' to standard out if it's the right version,
10 # $(error NDK version r5c or greater required)
13 # See https://gist.github.com/2878774 for asserting SDK version.
48 local version=$(echo "$1" | sed 's/r\([0-9]\{1,2\}[a-z]\{0,1\}\).*/\1/')
49 local major=$(echo "$version" | sed 's/\([0-9]\{1,2\}\).*/\1/')
50 local minor=$(echo "$version" | sed 's/^[0-9]*//')
55 echo "Usage: $0 <required version> <NDK_ROOT>" >&2
60 # Assert that the expected version is at least 4.
64 echo "Cannot test for versions less than r5: r4 doesn't have a version file." >&2
71 # NDK version r4 or earlier doesn't have a RELEASE.txt, and we just asserted
73 # invalid version.
80 version=$(grep '^r' $release_file)
82 actual_version=( $(get_major_minor "$version") )
83 if [ -z "$version" ] || [ -z "${actual_version[0]}" ]; then