Skip to content

Commit

Permalink
toolchains: print git version
Browse files Browse the repository at this point in the history
  • Loading branch information
smlng committed Dec 19, 2017
1 parent b151f95 commit e18aa35
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dist/tools/ci/print_toolchain_versions.sh
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit e18aa35

Please sign in to comment.