diff --git a/Makefile b/Makefile index eac8d6a..7a2af2e 100644 --- a/Makefile +++ b/Makefile @@ -50,13 +50,15 @@ book: $(BOOKPDF) booklet: $(BOOKLETPDF) +SSS=\newcommand + $(BOOKPDF): | $(PDFDIR) $(OUTDIR) @$(CP) $(SRCDIR)/*.tex $(OUTDIR)/ @$(CP) -r lib/* $(OUTDIR)/ @$(CP) -r $(SRCDIR)/images $(OUTDIR)/images @$(SED) "s;\musicbooklet;$(LILYPONDSUBST);g" $(SRCDIR)/singalongs.tex > $(OUTPUTFILE).00 - @$(SED) 's;\input{revision.tex};\newcommand{\\revision}{ $(shell git log -1 --format="%h") };g' $(OUTPUTFILE).00 > $(OUTPUTFILE) + @$(SED) 's/REVISION/$(shell git log -1 --format="%h")/g' $(OUTPUTFILE).00 > $(OUTPUTFILE) @$(CD) $(OUTDIR); \ $(LUALATEX) -shell-escape singalongs.tex; \ diff --git a/src/singalongs.tex b/src/singalongs.tex index 4e9de30..21e0316 100644 --- a/src/singalongs.tex +++ b/src/singalongs.tex @@ -10,7 +10,7 @@ \usepackage{multicol} \usepackage{lyluatex} -\input{revision.tex} +\newcommand {\revision}{ REVISION } \input{settings.tex} \input{headfoot.tex}