diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9dc92780..08857236 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,6 +63,7 @@ pdf: image: registry.gitlab.com/etherlab.org/build-container-factory/leap-15.3:texlive script: - cd documentation + - git show -s --format="\def\revision{%h}\def\gitversion{%(describe)}\def\gitauthor{%an}\def\isodate#1-#2-#3x{\day=#3 \month=#2 \year=#1}\isodate %csx" HEAD > git.tex - make - make index - make diff --git a/documentation/ethercat_doc.tex b/documentation/ethercat_doc.tex index c2df2830..51205863 100644 --- a/documentation/ethercat_doc.tex +++ b/documentation/ethercat_doc.tex @@ -2,8 +2,6 @@ % % IgH EtherCAT Master Documentation % -% $Id$ -% % vi: spell spelllang=en tw=78 % %------------------------------------------------------------------------------ @@ -16,7 +14,6 @@ \usepackage{makeidx} \usepackage[refpage]{nomencl} \usepackage{listings} -\usepackage[nofancy]{rcsinfo} \usepackage{SIunits} \usepackage{amsmath} % for \text{} \usepackage{longtable} @@ -58,7 +55,7 @@ \newcommand{\IgH}{\raisebox{-0.7667ex} {\includegraphics[height=2.2ex]{images/ighsign}}} -\rcsInfo $RCSId$ +\input{git} \newcommand{\masterversion}{1.5.2} \newcommand{\linenum}[1]{\normalfont\textcircled{\tiny #1}} @@ -67,8 +64,8 @@ \makenomenclature % Revision and date on inner footer -\ifoot[\scriptsize\rcsInfoRevision, \rcsInfoDate] - {\scriptsize\rcsInfoRevision, \rcsInfoDate} +\ifoot[\scriptsize\gitversion, \today] + {\scriptsize\gitversion, \date} %------------------------------------------------------------------------------ @@ -92,8 +89,8 @@ \url{fp@igh.de}\\[1ex] Ingenieurgemeinschaft \IgH} \vspace{\fill} - {\Large Essen, \rcsInfoLongDate\\[1ex] - Revision \rcsInfoRevision} + {\Large Essen, \today\\[1ex] + Revision \gitversion} \end{center} \end{titlepage} diff --git a/documentation/ethercat_doc_fr.tex b/documentation/ethercat_doc_fr.tex index 62196f4f..37989aae 100644 --- a/documentation/ethercat_doc_fr.tex +++ b/documentation/ethercat_doc_fr.tex @@ -2,9 +2,7 @@ % % IgH EtherCAT Master Documentation (French version) % -% $Id$ -% -% vi: spell spelllang=en tw=78 +% vi: spell spelllang=fr tw=78 % %------------------------------------------------------------------------------ @@ -17,7 +15,6 @@ \usepackage{makeidx} \usepackage[refpage]{nomencl} \usepackage{listings} -\usepackage[nofancy]{rcsinfo} \usepackage{SIunits} \usepackage{amsmath} % for \text{} \usepackage{longtable} @@ -59,7 +56,7 @@ \newcommand{\IgH}{\raisebox{-0.7667ex} {\includegraphics[height=2.2ex]{images/ighsign}}} -\rcsInfo $RCSId$ +\input{git} \newcommand{\masterversion}{1.5.2} \newcommand{\linenum}[1]{\normalfont\textcircled{\tiny #1}} @@ -68,8 +65,8 @@ \makenomenclature % Revision and date on inner footer -\ifoot[\scriptsize\rcsInfoRevision, \rcsInfoDate] - {\scriptsize\rcsInfoRevision, \rcsInfoDate} +\ifoot[\scriptsize\gitversion, \today] + {\scriptsize\gitversion, \today} %------------------------------------------------------------------------------ @@ -93,8 +90,8 @@ \url{fp@igh.de}\\[1ex] Ingenieurgemeinschaft \IgH} \vspace{\fill} - {\Large Essen, \rcsInfoLongDate\\[1ex] - R\'evision \rcsInfoRevision} + {\Large Essen, \today\\[1ex] + R\'evision \gitversion} \vspace{\fill} {\Large Traduit en fran\c{c}ais par S\'ebastien BLANCHET }