Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
6f99a982
Unverified
Commit
6f99a982
authored
7 years ago
by
Kaspar Schleiser
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dist/tools/ci/print_toolchain_versions.sh
+12
-0
12 additions, 0 deletions
dist/tools/ci/print_toolchain_versions.sh
with
12 additions
and
0 deletions
dist/tools/ci/print_toolchain_versions.sh
+
12
−
0
View file @
6f99a982
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment