On 04/04/2022 13:17, Will Godfrey wrote:
It would also be helpful if you update the build number
(Misc/ConfBuild.h).
Kristian Amlie <[email protected]> wrote:
Should we not consider replacing this with a Git commit number instead?
This is more absolute, and can be automated without needing to change any
file specifically. It should be possible to make cmake insert this...
Am 08.04.22 um 16:24 schrieb Will Godfrey:
That's an interesting idea, but I'm afraid it would look rather scary to the
average user.
You can let Git do the hard work ;-)
git rev-parse --short=4 <commithash>
will print the shortened yet unambiguous hash to stdout. --short=4 is the
minimum possible; if always e.g. want 6 digits, then you can use --short=6
Git will automatically add more digits in case the produced hash would not
be unambiguous otherwise.
We could provide a little shell script, that uses the above git magic
plus sed to rewrite src/Misc/ConfBuild.h
_______________________________________________
Yoshimi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel