From cedea21b101bc1a3af90f0c97b5bb768311630fd Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Sat, 4 Jul 2020 22:15:45 +0100 Subject: 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'). --- paper.tex | 25 +++++++++++++------------ reproduce/analysis/make/initialize.mk | 6 ++++++ 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}" >> $@ -- cgit v1.2.1