forked from bitrise-io/android-ndk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem_report.sh
39 lines (36 loc) · 1.12 KB
/
system_report.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -e
echo
echo '#'
echo '# This System Report was generated by: https://github.com/bitrise-docker/android-ndk/blob/master/system_report.sh'
echo '# Pull Requests are welcome!'
echo '#'
echo
echo
echo "=== Revision / ID ======================"
if [ -z "$BITRISE_DOCKER_REV_NUMBER_ANDROID_NDK" ] ; then
echo " [!] No BITRISE_DOCKER_REV_NUMBER_ANDROID_NDK defined!"
exit 1
fi
echo "* BITRISE_DOCKER_REV_NUMBER_ANDROID_NDK: $BITRISE_DOCKER_REV_NUMBER_ANDROID_NDK"
echo "========================================"
echo
if [ -f "${ANDROID_NDK_HOME}/source.properties" ] ; then
echo "$ cat ${ANDROID_NDK_HOME}/source.properties"
cat "${ANDROID_NDK_HOME}/source.properties"
elif [ -f "${ANDROID_NDK_HOME}/RELEASE.TXT" ] ; then
echo "$ cat ${ANDROID_NDK_HOME}/RELEASE.TXT"
cat "${ANDROID_NDK_HOME}/RELEASE.TXT"
else
echo "No NDK version file found!"
exit 1
fi
echo
echo "$ tree -L 2 /opt/android-ndk"
tree -L 2 /opt/android-ndk
echo
echo
echo "=== Pre-installed tool versions ========"
# ver_line="$(cmake --version | head -n 1)" ; echo "* cmake: $ver_line"
echo "========================================"
echo