aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2020-07-04 22:15:45 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2020-07-04 22:15:45 +0100
commitcedea21b101bc1a3af90f0c97b5bb768311630fd (patch)
tree9eaf8ac0e37afd3f2447d8416c60c64a3790e8f2
parent6322d4f3961bc4b275707366d9bb2703ab98be79 (diff)
Commit hash of Maneage branch used to build project as LaTeX macro
To help in the documentation, the Git hash of the Maneage branch commit that the project has most recently merged with (or branched from) is now also provided as a LaTeX macro ('\maneageversion'). It is calculated in 'reproduce/analysis/make/initialize.mk' (in the recipe to 'initialize.tex').
-rw-r--r--paper.tex25
-rw-r--r--reproduce/analysis/make/initialize.mk6
2 files changed, 19 insertions, 12 deletions
diff --git a/paper.tex b/paper.tex
index cda853f..5367c74 100644
--- a/paper.tex
+++ b/paper.tex
@@ -250,18 +250,19 @@ to follow the ``Publication checklist'' of \texttt{README-hacking.md}.
mentioning the reproducible paper template.}
This project was developed in the reproducible framework of Maneage
-\citep[\emph{Man}aging data lin\emph{eage},][]{maneage}. Maneage has been
-funded partially by the following grants: Japanese Ministry of Education,
-Culture, Sports, Science, and Technology (MEXT) PhD scholarship to
-M. Akhlaghi and its Grant-in-Aid for Scientific Research (21244012,
-24253003). The European Research Council (ERC) advanced grant
-339659-MUSICOS. The European Union (EU) Horizon 2020 (H2020) research and
-innovation programmes No 777388 under RDA EU 4.0 project, and Marie
-Sk\l{}odowska-Curie grant agreement No 721463 to the SUNDIAL ITN. The State
-Research Agency (AEI) of the Spanish Ministry of Science, Innovation and
-Universities (MCIU) and the European Regional Development Fund (ERDF) under
-the grant AYA2016-76219-P. The IAC project P/300724, financed by the MCIU,
-through the Canary Islands Department of Economy, Knowledge and Employment.
+\citep[\emph{Man}aging data lin\emph{eage},][over commit
+ \maneageversion]{maneage}. Maneage has been funded partially by the
+following grants: Japanese Ministry of Education, Culture, Sports, Science,
+and Technology (MEXT) PhD scholarship to M. Akhlaghi and its Grant-in-Aid
+for Scientific Research (21244012, 24253003). The European Research Council
+(ERC) advanced grant 339659-MUSICOS. The European Union (EU) Horizon 2020
+(H2020) research and innovation programmes No 777388 under RDA EU 4.0
+project, and Marie Sk\l{}odowska-Curie grant agreement No 721463 to the
+SUNDIAL ITN. The State Research Agency (AEI) of the Spanish Ministry of
+Science, Innovation and Universities (MCIU) and the European Regional
+Development Fund (ERDF) under the grant AYA2016-76219-P. The IAC project
+P/300724, financed by the MCIU, through the Canary Islands Department of
+Economy, Knowledge and Employment.
%% Tell BibLaTeX to put the bibliography list here.
\printbibliography
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}" >> $@