From 6a4b4898bd3a69d63cc0b34dd276e3dd194cebc9 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Sun, 28 Jun 2020 03:15:16 +0100 Subject: 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). --- reproduce/analysis/config/metadata.conf | 2 +- reproduce/analysis/make/initialize.mk | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'reproduce') 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}" >> $@ -- cgit v1.2.1