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
|
||||
|
||||
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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
title:
|
||||
- Using pandoc, latex + beamer and markdown to VCS a slideshow
|
||||
subtitle:
|
||||
- Subtle
|
||||
- Version &hash
|
||||
author:
|
||||
- KenwoodFox
|
||||
institute:
|
||||
|
|
Loading…
Reference in New Issue