Merge pull request #8290 from smlng/ci/toolchain/print_git_version

toolchains: print git version
This commit is contained in:
Kaspar Schleiser 2017-12-21 11:54:06 +01:00 committed by GitHub
commit 6f99a98205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,17 @@ spatch_version() {
printf "%s" "$ver"
}
git_version() {
local cmd="git"
if command -v "$cmd" 2>&1 >/dev/null; then
ver=$("$cmd" --version | head -n 1)
else
ver="missing"
fi
printf "%s" "$ver"
}
printf "%s\n" "Installed toolchain versions"
printf "%s\n" "----------------------------"
VER=$(gcc --version | head -n 1)
@ -91,4 +102,5 @@ for p in avr; do
done
printf "%20s: %s\n" "cppcheck" "$(cppcheck_version)"
printf "%20s: %s\n" "coccinelle" "$(spatch_version)"
printf "%20s: %s\n" "git" "$(git_version)"
exit 0