No longer using gitinfo for the revision info. To complicated when all I

want is the short revision number. Now it works even on Windows.
This commit is contained in:
Sebastian Hugentobler 2013-04-08 10:13:07 +02:00
parent 3b98e1aeee
commit f1355607c4
4 changed files with 5 additions and 10 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
*.pdf *.pdf
*~
*.*~ *.*~
out/* out/*
pdf/* pdf/*

View File

@ -2,15 +2,11 @@ OUTDIR=out
PDFDIR=pdf PDFDIR=pdf
FILE = sheet-music_tinwhistle FILE = sheet-music_tinwhistle
LILY_PDF = lilypond-book --pdf -o $(OUTDIR) LILY_PDF = lilypond-book --pdf -o $(OUTDIR)
PDF=cd $(OUTDIR) && pdflatex $(FILE).tex PDF=cd $(OUTDIR) && pdflatex --enable-pipes --shell-escape $(FILE).tex
INDEX=cd $(OUTDIR) && makeindex $(FILE).tex INDEX=cd $(OUTDIR) && makeindex $(FILE).tex
# The suffixes used in this Makefile.
.SUFFIXES: .lytex .tex .ly .pdf .SUFFIXES: .lytex .tex .ly .pdf
# Input and output files are searched in the directories listed in
# the VPATH variable. All of them are subdirectories of the current
# directory (given by the GNU make variable `CURDIR').
VPATH = \ VPATH = \
$(CURDIR)/lyrics \ $(CURDIR)/lyrics \
$(CURDIR)/notes \ $(CURDIR)/notes \
@ -18,8 +14,7 @@ VPATH = \
all: book all: book
book: $(OUTDIR) $(PDFDIR) book: $(OUTDIR) $(PDFDIR)
cp gitHeadInfo.gin $(OUTDIR)/
cp headfoot.tex $(OUTDIR)/ cp headfoot.tex $(OUTDIR)/
cp settings.tex $(OUTDIR)/ cp settings.tex $(OUTDIR)/
cp -r license/ $(OUTDIR)/ cp -r license/ $(OUTDIR)/

View File

@ -6,7 +6,6 @@
\usepackage{geometry} \usepackage{geometry}
\usepackage{xmpincl} \usepackage{xmpincl}
\usepackage{hyperref} \usepackage{hyperref}
\usepackage[grumpy]{gitinfo}
\input{settings.tex} \input{settings.tex}
\input{headfoot.tex} \input{headfoot.tex}

View File

@ -15,8 +15,8 @@
\end{minipage} \end{minipage}
\begin{minipage}{0.4\textwidth} \begin{minipage}{0.4\textwidth}
\begin{flushright} \large \begin{flushright} \large
\emph{Version:} \\ \emph{Git Revision:} \\
\textsc{\gitAbbrevHash} \textsc{\input{|"git log -1 --oneline --no-notes | cut -d ' ' -f1"}}
\end{flushright} \end{flushright}
\end{minipage} \end{minipage}
\vfill \vfill