Skip to content

feature: log scuff-em version (from git) to output files.#199

Open
texnokrates wants to merge 6 commits intoHomerReid:masterfrom
texnokrates:log_git_version_cherrypick
Open

feature: log scuff-em version (from git) to output files.#199
texnokrates wants to merge 6 commits intoHomerReid:masterfrom
texnokrates:log_git_version_cherrypick

Conversation

@texnokrates
Copy link
Copy Markdown

@texnokrates texnokrates commented Jun 4, 2019

As no software is perfect, it is useful to keep track about which version was used for generating a given output.
This PR introduces some some features in this regard. During build, a string generated by git describe is passed as a macro to all application sources. This string is then included in the output files, so one can easily check which git version of scuff-em was used. The version string is now also printed by OSUsage().

The downside of the approach used here is that it uses the $(shell ...) construct in Makefile.am, which is a GNU extension, so it might affect portability when built with a non-GNU make. And of course, git is also required.

(cherry picked from commit cb1109b)
(cherry picked from commit 63e110a)
(cherry picked from commit 68ec604)
May break compatibility with non-GNU make due to the $(shell ...)
extension.

(cherry picked from commit 4dc57e4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant