Skip to content
Snippets Groups Projects
Unverified Commit 6f99a982 authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by GitHub
Browse files

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

toolchains: print git version
parents 9acf7c96 e18aa355
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,17 @@ spatch_version() { ...@@ -69,6 +69,17 @@ spatch_version() {
printf "%s" "$ver" 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" "Installed toolchain versions"
printf "%s\n" "----------------------------" printf "%s\n" "----------------------------"
VER=$(gcc --version | head -n 1) VER=$(gcc --version | head -n 1)
...@@ -91,4 +102,5 @@ for p in avr; do ...@@ -91,4 +102,5 @@ for p in avr; do
done done
printf "%20s: %s\n" "cppcheck" "$(cppcheck_version)" printf "%20s: %s\n" "cppcheck" "$(cppcheck_version)"
printf "%20s: %s\n" "coccinelle" "$(spatch_version)" printf "%20s: %s\n" "coccinelle" "$(spatch_version)"
printf "%20s: %s\n" "git" "$(git_version)"
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment