From 8b006f31cd8d3d21bbd4fa0a7b0f722fe8cb497b Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Thu, 21 Nov 2019 17:12:21 +0000 Subject: Added Git commit checksum was on first slide The Git commit checksum has been added to the first slide to help readers identify any change. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d77dac2..c935bda 100644 --- a/Makefile +++ b/Makefile @@ -20,12 +20,15 @@ reproducible-paper.pdf: reproducible-paper.tex \ tex/project-graph.tex tex/git-branch.tex # We'll run pdflatex two times so the page numbers and # internal links also work. + if [ -d .git ]; then v=$$(git describe --dirty --always --long); \ + else v=NO-GIT; fi; \ + echo "\newcommand{\gitcommit}{$$v}" > git-commit.tex pdflatex reproducible-paper pdflatex reproducible-paper # Clean all extra files .PHONY: clean-latex clean clean-latex: - rm -f *.aux *.log *.nav *.out *.snm *.toc + rm -f *.aux *.log *.nav *.out *.snm *.toc git-commit.tex clean: clean-latex rm *.pdf -- cgit v1.2.1