The git describe
that asks git for the exact version number is done by configure.ac
- which is fine. But as maxima knows how to execute external programs and to read their output via a pipe we can additionally tell our lisp-only build system to do that, too, so that the ones who use the lisp-only build automatically get a complete version number.
Source: [Maxima-discuss] correctly display maxima version from 20220319
I'm thinking if you're doing a lisp-only build, you don't want to have all the other tools around. And that might include git. (You could have obtained maxima sources as a tarball instead of a git checkout.)
I never do lisp-only builds. I need the online help to remind me what things do.
Although it's true that Git is not necessarily in the picture, we can look for a Git tag on a best-effort basis. If
git describe
succeeds, great, construct a label from it, otherwise fall back on whatever is already being used.