-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-checkout
executable file
·47 lines (37 loc) · 1.4 KB
/
post-checkout
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
# get git-info from jpscore and jpsreport
# --> create $guide/jps_guide/titlepage.tex
# -----------------------------------------------------
guide=`pwd`
cd ../jpscore/
FIRSTTAG=$(git describe origin/master --tags --always 2>/dev/null)
git --no-pager log -1 --date=short --decorate=short \
--pretty=format:"
%% this file is generatred automatically. All manual changes will be deleted by next git checkout
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\begin{titlepage}
\begin{center}
\includegraphics[width=0.75\textwidth]{img/jupedsim_small.png} \\\\ [1cm]
\textsc{\LARGE Jülich Pedestrian Simulator} \\\\ [1.5cm]
\textsc{\small Forschungszentrum Jülich GmbH} \\\\ [0.5cm]
\HRule \\\\ [0.4cm]
{ \huge \bfseries User's Guide Version \Version} \\\\ [0.4cm]
\HRule \\\\ [1.5cm]
{\large Stand: \today}
\end{center}
%>>>>>>>>>>>>>
\vfill
\vfill
\begin{minipage}{0.8\textwidth}
\begin{flushleft} \large
\color{gray}{\sffamily jpscore \hspace{0.22cm} \textbullet~{$FIRSTTAG} ({%cd})}
" origin/master > $guide/jps_guide/titlepage.tex
cd ../jpsreport/
FIRSTTAG=$(git describe --tags --always origin/master 2>/dev/null)
git --no-pager log -1 --date=short --decorate=short \
--pretty=format:"
\color{gray}{\sffamily jpsreport \textbullet~{$FIRSTTAG} ({%cd})}
\end{flushleft}
\end{minipage}
\end{titlepage}
" origin/master >> $guide/jps_guide/titlepage.tex