Add Python, Perl and Pylint to output_env.sh

Add the versions of Python, Perl, and Pylint to the version dump provided by
the output_env.sh script.

Signed-off-by: Simon Butcher <simon.butcher@arm.com>
This commit is contained in:
Simon Butcher 2020-03-05 15:18:53 +00:00
parent 3756128a65
commit 8277041108

View file

@ -23,7 +23,7 @@ print_version()
shift shift
ARGS="$1" ARGS="$1"
shift shift
VARIANT=$1 VARIANT="$1"
shift shift
if [ -n "$VARIANT" ]; then if [ -n "$VARIANT" ]; then
@ -45,6 +45,10 @@ print_version()
VERSION_STR=`echo "$VERSION_STR" | $FILTER` VERSION_STR=`echo "$VERSION_STR" | $FILTER`
done done
if [ -z "$VERSION_STR" ]; then
VERSION_STR="Version could not be determined."
fi
echo " * ${BIN##*/}$VARIANT: ${BIN} : ${VERSION_STR} " echo " * ${BIN##*/}$VARIANT: ${BIN} : ${VERSION_STR} "
} }
@ -61,6 +65,7 @@ fi
echo echo
print_version "uname" "-a" "" print_version "uname" "-a" ""
echo echo
echo echo
echo "** Tool Versions:" echo "** Tool Versions:"
@ -94,6 +99,15 @@ echo
print_version "gdb" "--version" "" "head -n 1" print_version "gdb" "--version" "" "head -n 1"
echo echo
print_version "perl" "--version" "" "head -n 2" "grep ."
echo
print_version "python" "--version" "" "head -n 1"
echo
print_version "pylint3" "--version" "" "head -n 2" "tail -n 1"
echo
: ${OPENSSL:=openssl} : ${OPENSSL:=openssl}
print_version "$OPENSSL" "version" "default" print_version "$OPENSSL" "version" "default"
echo echo