initial commit
authorMart Lubbers <mart@martlubbers.net>
Thu, 26 Mar 2015 08:14:33 +0000 (09:14 +0100)
committerMart Lubbers <mart@martlubbers.net>
Thu, 26 Mar 2015 08:14:33 +0000 (09:14 +0100)
Makefile [new file with mode: 0644]
git.tex [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..c17eb18
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+SHELL:=/bin/bash
+
+all: vc.tex git.pdf
+
+%.pdf: %.dvi
+       dvipdfm $<
+
+%.dvi: %.tex vc.tex
+       latex $< 
+       latex $<
+
+vc.tex: .git/logs/HEAD
+       git log -1 --format="format:\
+               \\gdef\\GITAbrHash{%h}\
+               \\gdef\\GITAuthorDate{%ad}\
+               \\gdef\\GITAuthorName{%an}" > vc.tex
+
+clean:
+       $(RM) -v *.{eps,aux,bbl,blg,dvi,log,out,toc}
diff --git a/git.tex b/git.tex
new file mode 100644 (file)
index 0000000..c325737
--- /dev/null
+++ b/git.tex
@@ -0,0 +1,17 @@
+\documentclass{beamer}
+
+\input{vc.tex}
+
+\author{Mart Lubbers}
+\title{Git flashtalk}
+\date{\today}
+
+\begin{document}
+
+\begin{frame}
+       \maketitle
+       \let\thefootnote\relax
+       \footnotetext{Git \GITAbrHash, \GITAuthorDate, \GITAuthorName.}
+\end{frame}
+
+\end{document}