diff --git a/Makefile b/Makefile index e177859..f16f95e 100755 --- a/Makefile +++ b/Makefile @@ -5,7 +5,14 @@ # # Kitsune Scientific 2021 -all: generate +hash := $(shell git rev-parse --short HEAD) -generate: *.md - pandoc *.md -t beamer -o changeme.pdf +all: generate clean + +generate: example_slides.md + cp example_slides.md working.md + sed -i "s/&hash/$(hash)/" working.md + pandoc working.md -t beamer -o changeme.pdf + +clean: working.md + rm working.md diff --git a/example_slides.md b/example_slides.md index 20f22d5..b728957 100644 --- a/example_slides.md +++ b/example_slides.md @@ -2,7 +2,7 @@ title: - Using pandoc, latex + beamer and markdown to VCS a slideshow subtitle: - - Subtle + - Version &hash author: - KenwoodFox institute: