Maybe now the revision commands will work on the build server...
This commit is contained in:
parent
9b5b9f3e7e
commit
2703028507
8
Makefile
8
Makefile
@ -5,6 +5,7 @@ GITINFO=revision.tex
|
||||
LILY_PDF = lilypond-book --pdf -o $(OUTDIR)
|
||||
PDF=cd $(OUTDIR) && pdflatex --enable-pipes --shell-escape $(FILE).tex
|
||||
INDEX=cd $(OUTDIR) && makeindex $(FILE).tex
|
||||
OUTPUT = `git log -1 --format="%h"`
|
||||
|
||||
.SUFFIXES: .lytex .tex .ly .pdf
|
||||
|
||||
@ -34,9 +35,10 @@ $(OUTDIR):
|
||||
$(PDFDIR):
|
||||
mkdir -p $(PDFDIR)
|
||||
|
||||
$(GITINFO):
|
||||
echo "% Autogenerated, do not edit" > $(GITINFO)
|
||||
echo "\\newcommand{\\revision}{`git log -1 --format=\"%h\"`}" >> $(GITINFO)
|
||||
$(GITINFO): FORCE
|
||||
echo "\\newcommand{\\revision}{$(OUTPUT)}" > $(GITINFO)
|
||||
|
||||
clean:
|
||||
rm -rf $(OUTDIR)
|
||||
|
||||
FORCE:
|
||||
|
@ -7,6 +7,7 @@
|
||||
\usepackage{xmpincl}
|
||||
\usepackage{hyperref}
|
||||
|
||||
\input{revision.tex}
|
||||
\input{settings.tex}
|
||||
\input{headfoot.tex}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user