replace the sed command for the git revision with something that does not trigger a newline with gnu sed...
This commit is contained in:
parent
1fe4c53999
commit
197e905604
4
Makefile
4
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; \
|
||||
|
@ -10,7 +10,7 @@
|
||||
\usepackage{multicol}
|
||||
\usepackage{lyluatex}
|
||||
|
||||
\input{revision.tex}
|
||||
\newcommand {\revision}{ REVISION }
|
||||
\input{settings.tex}
|
||||
\input{headfoot.tex}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user