Automatically inject hash as version
This commit is contained in:
parent
042ffe9185
commit
ea36714781
13
Makefile
13
Makefile
|
@ -5,7 +5,14 @@
|
||||||
#
|
#
|
||||||
# Kitsune Scientific 2021
|
# Kitsune Scientific 2021
|
||||||
|
|
||||||
all: generate
|
hash := $(shell git rev-parse --short HEAD)
|
||||||
|
|
||||||
generate: *.md
|
all: generate clean
|
||||||
pandoc *.md -t beamer -o changeme.pdf
|
|
||||||
|
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
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
title:
|
title:
|
||||||
- Using pandoc, latex + beamer and markdown to VCS a slideshow
|
- Using pandoc, latex + beamer and markdown to VCS a slideshow
|
||||||
subtitle:
|
subtitle:
|
||||||
- Subtle
|
- Version &hash
|
||||||
author:
|
author:
|
||||||
- KenwoodFox
|
- KenwoodFox
|
||||||
institute:
|
institute:
|
||||||
|
|
Loading…
Reference in New Issue