Skip to content

Commit

Permalink
Add micro version number to --version output
Browse files Browse the repository at this point in the history
Some projects, such as qtwebengine, parse the output of --version,
and are tripped up by a version string with only two components.
  • Loading branch information
michaelforney committed Apr 10, 2021
1 parent aff2085 commit ca5a6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samu.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ main(int argc, char *argv[])
case '-':
arg = EARGF(usage());
if (strcmp(arg, "version") == 0) {
printf("%d.%d\n", ninjamajor, ninjaminor);
printf("%d.%d.0\n", ninjamajor, ninjaminor);
return 0;
} else if (strcmp(arg, "verbose") == 0) {
buildopts.verbose = true;
Expand Down

0 comments on commit ca5a6ba

Please sign in to comment.