Revision.tex is now a variable in the Makefile

This commit is contained in:
Sebastian Hugentobler 2013-04-11 11:06:25 +02:00
parent 823ef62e6a
commit d456d792e1
2 changed files with 4 additions and 132 deletions

View File

@ -20,12 +20,13 @@ book: $(OUTDIR) $(PDFDIR) $(GITINFO)
cp settings.tex $(OUTDIR)/ cp settings.tex $(OUTDIR)/
cp -r license/ $(OUTDIR)/ cp -r license/ $(OUTDIR)/
cp -r images/ $(OUTDIR)/ cp -r images/ $(OUTDIR)/
cp $(GITINFO) $(OUTDIR)/
$(LILY_PDF) $(FILE).lytex $(LILY_PDF) $(FILE).lytex
$(PDF) $(PDF)
$(INDEX) $(INDEX)
$(PDF) $(PDF)
cp $(CURDIR)/$(OUTDIR)/$(FILE).pdf $(CURDIR)/$(PDFDIR)/$(FILE).pdf cp $(CURDIR)/$(OUTDIR)/$(FILE).pdf $(CURDIR)/$(PDFDIR)/$(FILE).pdf
rm revision.tex rm $(GITINFO)
$(OUTDIR): $(OUTDIR):
mkdir -p $(OUTDIR) mkdir -p $(OUTDIR)
@ -34,8 +35,8 @@ $(PDFDIR):
mkdir -p $(PDFDIR) mkdir -p $(PDFDIR)
$(GITINFO): $(GITINFO):
echo "% Autogenerated, do not edit" > $(GITINFO) echo "% Autogenerated, do not edit" > $(GITINFO)
echo "\\newcommand{\\revision}{`git log -1 --format=\"%h\"`}" >> $(GITINFO) echo "\\newcommand{\\revision}{`git log -1 --format=\"%h\"`}" >> $(GITINFO)
clean: clean:
rm -rf $(OUTDIR) rm -rf $(OUTDIR)

View File

@ -1,129 +0,0 @@
\documentclass[12pt, a4paper, openany]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{xmpincl}
\usepackage{hyperref}
\input{settings.tex}
\input{headfoot.tex}
\input{revision.tex}
\begin{document}
\widowpenalties 1 10000
\raggedbottom
\pagenumbering{roman}
\input{title.tex}
\chapter*{Contributors}
\begin{itemize}
\item Sebastian Hugentobler
\item Matias Hugentobler
\end{itemize}
\tableofcontents
\clearpage
\pagenumbering{arabic}
\chapter{All for Me Grog}
\lilypondfile[staffsize=18]{notes/AllForMeGrog.ly}
~\\ ~\\
\input{lyrics/AllForMeGrog.tex}
\chapter{Auld Lang Syne}
\lilypondfile[staffsize=18]{notes/AuldLangSyne.ly}
~\\ ~\\
\input{lyrics/AuldLangSyne.tex}
\chapter{The Black Velvet Band}
\lilypondfile[staffsize=18]{notes/BlackVelvetBand.ly}
~\\ ~\\
\input{lyrics/BlackVelvetBand.tex}
\chapter{Bürgerlied}
\lilypondfile[staffsize=18]{notes/Buergerlied.ly}
~\\ ~\\
\input{lyrics/Buergerlied.tex}
\chapter {Drunken Sailor}
\lilypondfile[staffsize=18]{notes/DrunkenSailor.ly}
~\\ ~\\
\input{lyrics/DrunkenSailor.tex}
\chapter{Finnegan's Wake}
\lilypondfile[staffsize=18]{notes/FinnegansWake.ly}
~\\ ~\\
\input{lyrics/FinnegansWake.tex}
\chapter{The Foggy Dew}
\lilypondfile[staffsize=18]{notes/FoggyDew.ly}
~\\ ~\\
\input{lyrics/FoggyDew.tex}
\chapter{I'm a Rover Seldom Sober}
\lilypondfile[staffsize=18]{notes/ImARoverSeldomSober.ly}
~\\ ~\\
\input{lyrics/ImARoverSeldomSober.tex}
\chapter{The Irish Rover}
\lilypondfile[staffsize=18]{notes/IrishRover.ly}
~\\ ~\\
\input{lyrics/IrishRover.tex}
\chapter{Johnny I Hardly Knew Ye}
\lilypondfile[staffsize=18]{notes/JohnnyIHardlyKnewYe.ly}
~\\ ~\\
\input{lyrics/JohnnyIHardlyKnewYe.tex}
\chapter{MacPherson's Farewell}
\lilypondfile[staffsize=18]{notes/MacPhersonsFarewell.ly}
~\\ ~\\
\input{lyrics/MacPhersonsFarewell.tex}
\chapter{Molly Malone}
\lilypondfile[staffsize=18]{notes/MollyMalone.ly}
~\\ ~\\
\input{lyrics/MollyMalone.tex}
\chapter{Muirsheen Durkin}
\lilypondfile[staffsize=18]{notes/MuirsheenDurkin.ly}
~\\ ~\\
\input{lyrics/MuirsheenDurkin.tex}
\chapter {A Nation Once Again}
\lilypondfile[staffsize=18]{notes/NationOnceAgain.ly}
~\\ ~\\
\input{lyrics/NationOnceAgain.tex}
\chapter{The Parting Glass}
\lilypondfile[staffsize=18]{notes/PartingGlass.ly}
~\\ ~\\
\input{lyrics/PartingGlass.tex}
\chapter {The Rising of the Moon}
\lilypondfile[staffsize=18]{notes/RisingOfTheMoon.ly}
~\\ ~\\
\input{lyrics/RisingOfTheMoon.tex}
\chapter{The Star of the County Down}
\lilypondfile[staffsize=18]{notes/StarOfTheCountyDown.ly}
~\\ ~\\
\input{lyrics/StarOfTheCountyDown.tex}
\chapter{Whiskey in the Jar}
\lilypondfile[staffsize=18]{notes/WhiskeyInTheJar.ly}
~\\ ~\\
\input{lyrics/WhiskeyInTheJar.tex}
\chapter{The Wild Rover}
\lilypondfile[staffsize=18]{notes/WildRover.ly}
~\\ ~\\
\input{lyrics/WildRover.tex}
\end{document}