Automatically inject hash as version

This commit is contained in:
Kenwood 2021-07-16 22:23:31 -04:00
parent 042ffe9185
commit ea36714781
2 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -2,7 +2,7 @@
title:
- Using pandoc, latex + beamer and markdown to VCS a slideshow
subtitle:
- Subtle
- Version &hash
author:
- KenwoodFox
institute: