diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2019-11-21 17:12:21 +0000 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2019-11-21 17:12:21 +0000 |
commit | 8b006f31cd8d3d21bbd4fa0a7b0f722fe8cb497b (patch) | |
tree | 35a9ba7f4b0f394e81c27ce9e1853cc9e714b045 /Makefile | |
parent | 772c88963914d42c5d964c75bb432e6af43c2114 (diff) |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |