diff --git a/.gitignore b/.gitignore index b0c96e5..b1d7a90 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.*~ out/* pdf/* +revision.tex diff --git a/Makefile b/Makefile index 9cd4a72..a729e92 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ VPATH = \ all: book -book: $(OUTDIR) $(PDFDIR) +book: $(OUTDIR) $(PDFDIR) revision.tex cp headfoot.tex $(OUTDIR)/ cp settings.tex $(OUTDIR)/ cp -r license/ $(OUTDIR)/ @@ -30,6 +30,10 @@ $(OUTDIR): $(PDFDIR): mkdir -p $(PDFDIR) + +revision.tex: + echo "% Autogenerated, do not edit" > revision.tex + echo "\\newcommand{\\revision}{`git log -1 --format=\"%h\"`}" >> revision.tex clean: - rm -rf $(OUTDIR) + rm -rf $(OUTDIR) diff --git a/notes/Buergerlied.ly b/notes/Buergerlied.ly index a8f9fb8..f0c427e 100644 --- a/notes/Buergerlied.ly +++ b/notes/Buergerlied.ly @@ -7,7 +7,7 @@ << \chords {s4 g2 e1*3/4:m g2 c1*3/4:7 a2:m d1*3/4:7 g2 c1*3/4:7 a2:m d1*3/4:7 e4:m a2:m g e4:m a2:m g} - \relative d'' + \relative d' { \time 5/4 \key g \major diff --git a/sheet-music_tinwhistle.lytex b/sheet-music_tinwhistle.lytex index e4422b7..80f0dbe 100644 --- a/sheet-music_tinwhistle.lytex +++ b/sheet-music_tinwhistle.lytex @@ -7,8 +7,9 @@ \usepackage{xmpincl} \usepackage{hyperref} -\input{settings.tex} -\input{headfoot.tex} +\input{settings} +\input{headfoot} +\input{revision} \begin{document} \widowpenalties 1 10000 diff --git a/title.tex b/title.tex index 168fac6..a4994bf 100644 --- a/title.tex +++ b/title.tex @@ -16,12 +16,11 @@ \end{minipage} \begin{minipage}{0.4\textwidth} \begin{flushright} \large - \emph{Git Revision:} \\ - \input{|"git log -1 --oneline --no-notes | cut -d ' ' -f1"} + \emph{Git Revision:} \\ + \revision \\ \end{flushright} \end{minipage} - \vfill - + \vfill \textbf{Creative Commons BY-SA 3.0 Unported License} \url{http://creativecommons.org/licenses/by-sa/3.0} \\ ~\\