Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
dynamically create version information
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Sep 19, 2013
1 parent d32f111 commit c096d3a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
8 changes: 6 additions & 2 deletions manuals/en/main/Makefile
Expand Up @@ -15,7 +15,7 @@ pdf: main.pdf

html: html/main.html

html/main.html: *.sty *.tex $(INDEXES) main.toc
html/main.html: *.sty *.tex version.tex.tmp $(INDEXES) main.toc
mkdir -p html
htlatex main "" "" -d./html/

Expand All @@ -28,7 +28,11 @@ html/main.html: *.sty *.tex $(INDEXES) main.toc
main.toc: *.tex
$(LATEX) main.tex

main.dvi: *.sty *.tex $(INDEXES) main.toc
version.tex.tmp: *.tex
printf -- "\\\\def\\\\bareosBranch{`git rev-parse --abbrev-ref HEAD`}\n" > version.tex.tmp
diff -q version.tex.tmp version.tex || cp -a version.tex.tmp version.tex

main.dvi: *.sty *.tex version.tex.tmp $(INDEXES) main.toc
$(LATEX) main.tex
$(LATEX) main.tex

Expand Down
2 changes: 0 additions & 2 deletions manuals/en/main/bareos.sty
Expand Up @@ -23,8 +23,6 @@
%% define images directory
\def\idir{../../images/} %% images directory

\def\version{12.4.0}

\newcommand{\fileStoragePath}{\path|/var/lib/bareos/storage/|}
\newcommand{\unixConfigPath}{\path|/etc/bareos/|}

Expand Down
2 changes: 1 addition & 1 deletion manuals/en/main/coverpage.tex
Expand Up @@ -8,7 +8,7 @@
}

\author{Bareos GmbH \& Co KG}
\date{This manual documents Bareos version \input{version} \\
\date{This manual documents Bareos version \version \\
\vspace{0.2in}
Copyright {\copyright} 1999-2012, Free Software Foundation Europe e.V. \\
Copyright {\copyright} 2010-2012, Planets Communications B.V. \\
Expand Down
2 changes: 2 additions & 0 deletions manuals/en/main/main.tex
Expand Up @@ -53,6 +53,8 @@
\sloppy
\parindent 0pt

\input{version}
\def\version{\bareosBranch{} (\today)}
\input{coverpage}

\clearpage
Expand Down
1 change: 0 additions & 1 deletion manuals/en/main/version.tex

This file was deleted.

0 comments on commit c096d3a

Please sign in to comment.