aboutsummaryrefslogtreecommitdiff
path: root/reproduce/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'reproduce/analysis')
-rw-r--r--reproduce/analysis/make/initialize.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/reproduce/analysis/make/initialize.mk b/reproduce/analysis/make/initialize.mk
index 315be1a..dff5eca 100644
--- a/reproduce/analysis/make/initialize.mk
+++ b/reproduce/analysis/make/initialize.mk
@@ -465,3 +465,9 @@ $(mtexdir)/initialize.tex: | $(mtexdir)
# Version and title of project.
echo "\newcommand{\projecttitle}{$(metadata-title)}" > $@
echo "\newcommand{\projectversion}{$(project-commit-hash)}" >> $@
+
+ # Calculate the latest Maneage commit used to build this
+ # project. Note that the '--dirty' option isn't applicable to
+ # "commit-ishes" (direct quote from Git's error message!).
+ v=$$(git describe --always --long maneage)
+ echo "\newcommand{\maneageversion}{$$v}" >> $@