replace the sed command for the git revision with something that does not trigger a newline with gnu sed...

This commit is contained in:
Sebastian Hugentobler 2015-12-01 10:49:31 +01:00
parent 1fe4c53999
commit 197e905604
2 changed files with 4 additions and 2 deletions

View File

@ -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; \

View File

@ -10,7 +10,7 @@
\usepackage{multicol}
\usepackage{lyluatex}
\input{revision.tex}
\newcommand {\revision}{ REVISION }
\input{settings.tex}
\input{headfoot.tex}