diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2020-06-28 03:15:16 +0100 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2020-06-28 03:15:16 +0100 |
commit | 6a4b4898bd3a69d63cc0b34dd276e3dd194cebc9 (patch) | |
tree | ebfb7fb68f4a3f3669f723a84051191195f57ae7 /reproduce/analysis | |
parent | 3d7d8cedfe0698e895949027906ce5ca996aad17 (diff) |
Zenodo identifier is extracted automatically from metadata.conf
Until now, the Zenodo identifier was manually written in the paper. But now
we have the Zenodo DOI in 'metadata.conf', so its much more robust to get
it from there (in case updated versions of the paper is published).
Diffstat (limited to 'reproduce/analysis')
-rw-r--r-- | reproduce/analysis/config/metadata.conf | 2 | ||||
-rw-r--r-- | reproduce/analysis/make/initialize.mk | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/reproduce/analysis/config/metadata.conf b/reproduce/analysis/config/metadata.conf index cddc33f..07a1145 100644 --- a/reproduce/analysis/config/metadata.conf +++ b/reproduce/analysis/config/metadata.conf @@ -14,7 +14,7 @@ metadata-title = Towards Long-term and Archivable Reproducibility # DOIs and identifiers. metadata-arxiv = 2006.03018 -metadata-doi-zenodo = https://doi.org/10.5281/zenodo.3872248 +metadata-doi-zenodo = https://doi.org/10.5281/zenodo.3911395 metadata-doi-journal = metadata-doi = $(metadata-doi-zenodo) metadata-git-repository = https://gitlab.com/makhlaghi/maneage-paper diff --git a/reproduce/analysis/make/initialize.mk b/reproduce/analysis/make/initialize.mk index d01cda0..1ec43e5 100644 --- a/reproduce/analysis/make/initialize.mk +++ b/reproduce/analysis/make/initialize.mk @@ -470,3 +470,7 @@ $(mtexdir)/initialize.tex: | $(mtexdir) # Version and title of project. echo "\newcommand{\projecttitle}{$(metadata-title)}" > $@ echo "\newcommand{\projectversion}{$(project-commit-hash)}" >> $@ + + # Zenodo identifier (necessary for download link): + v=$$(echo $(metadata-doi-zenodo) | sed -e's/\./ /g' | awk '{print $$NF}') + echo "\newcommand{\projectzenodoid}{$$v}" >> $@ |