From 3bf0e31b3a020c415d99d8661c5aca32647c7a6f Mon Sep 17 00:00:00 2001
From: Sascha Steinbiss <ss34@sanger.ac.uk>
Date: Thu, 7 Apr 2016 10:25:25 +0100
Subject: [PATCH] introduce dates for manuals

IMHO manuals should have a specific date, and the build date should not be
relevant here. This commit initialises the date fields in the manuals by
setting the date to the last modification date of the file in git, as
given by:

for f in doc/manuals/*.tex; do
  export OUT=`TZ=UTC LC_ALL=C date -d "$(git log -1 --format='%aD' -- $f )" +'%d\/%m\/%Y'`;
  sed -ri "s/.begin.document./\\\date{$OUT}\n\\\begin{document}/g" $f;
  unset OUT;
done
---
 doc/manuals/annotationsketch.tex | 1 +
 doc/manuals/genomediff.tex       | 1 +
 doc/manuals/hop.tex              | 1 +
 doc/manuals/ltrdigest.tex        | 1 +
 doc/manuals/ltrharvest.tex       | 1 +
 doc/manuals/mgth.tex             | 1 +
 doc/manuals/packedindex.tex      | 1 +
 doc/manuals/readjoiner.tex       | 1 +
 doc/manuals/repfind.tex          | 1 +
 doc/manuals/tagerator.tex        | 1 +
 doc/manuals/tallymer.tex         | 1 +
 doc/manuals/uniquesub.tex        | 1 +
 12 files changed, 12 insertions(+)

--- a/doc/manuals/annotationsketch.tex
+++ b/doc/manuals/annotationsketch.tex
@@ -50,6 +50,7 @@
 \subject{Supplementary Information}
 \author{Sascha Steinbiss, Gordon Gremme, Christin Sch\"arfer, Malte Mader\\ and Stefan Kurtz}
 
+\date{11/07/2012}
 \begin{document}
 
 \maketitle
--- a/doc/manuals/genomediff.tex
+++ b/doc/manuals/genomediff.tex
@@ -59,6 +59,7 @@
   \url{willrodt@zbh.uni-hamburg.de}\\
 \end{tabular}}
 
+\date{02/10/2012}
 \begin{document}
 %\tsuhhfamily
 \maketitle
--- a/doc/manuals/hop.tex
+++ b/doc/manuals/hop.tex
@@ -32,6 +32,7 @@
          \url{kurtz@zbh.uni-hamburg.de}\\[1cm]
         \end{tabular}}
 
+\date{15/05/2014}
 \begin{document}
 \maketitle
 
--- a/doc/manuals/ltrdigest.tex
+++ b/doc/manuals/ltrdigest.tex
@@ -41,6 +41,7 @@
         \end{tabular}
         \end{tabular}}
 
+\date{26/08/2013}
 \begin{document}
 \maketitle
 
--- a/doc/manuals/ltrharvest.tex
+++ b/doc/manuals/ltrharvest.tex
@@ -41,6 +41,7 @@
         \url{http://www.biomedcentral.com/1471-2105/9/18}
         \end{tabular}
         \end{tabular}}
+\date{26/08/2013}
 \begin{document}
 \maketitle
 
--- a/doc/manuals/mgth.tex
+++ b/doc/manuals/mgth.tex
@@ -37,6 +37,7 @@
          20146 Hamburg\\
          Germany\\[1cm]
         \end{tabular}}
+\date{26/08/2013}
 \begin{document}
 \maketitle
 
--- a/doc/manuals/packedindex.tex
+++ b/doc/manuals/packedindex.tex
@@ -38,6 +38,7 @@
 %        BMC Bioinformatics 2008, 9:18
         \end{tabular}
         \end{tabular}}
+\date{26/08/2013}
 \begin{document}
 \maketitle
 
--- a/doc/manuals/readjoiner.tex
+++ b/doc/manuals/readjoiner.tex
@@ -45,6 +45,7 @@
          \url{kurtz@zbh.uni-hamburg.de}\\[1cm]
         \end{tabular}}
 
+\date{18/02/2014}
 \begin{document}
 \maketitle
 
--- a/doc/manuals/repfind.tex
+++ b/doc/manuals/repfind.tex
@@ -28,6 +28,7 @@
          University of Hamburg
         \end{tabular}}
 
+\date{26/08/2013}
 \begin{document}
 \maketitle
 This manual describes the options of the program \Repfind. It also gives
--- a/doc/manuals/tagerator.tex
+++ b/doc/manuals/tagerator.tex
@@ -22,6 +22,7 @@
          University of Hamburg
         \end{tabular}}
 
+\date{26/08/2013}
 \begin{document}
 \maketitle
 
--- a/doc/manuals/tallymer.tex
+++ b/doc/manuals/tallymer.tex
@@ -95,6 +95,7 @@
          University of Hamburg
         \end{tabular}}
 
+\date{26/08/2013}
 \begin{document}
 \maketitle
 This manual describes the \textit{Tallymer}-software, a collection of programs
--- a/doc/manuals/uniquesub.tex
+++ b/doc/manuals/uniquesub.tex
@@ -24,6 +24,7 @@
          University of Hamburg
         \end{tabular}}
 
+\date{26/08/2013}
 \begin{document}
 \maketitle
 
--- a/doc/devguide/devguide.tex
+++ b/doc/devguide/devguide.tex
@@ -36,6 +36,7 @@
 \author{Sascha Steinbiss, Gordon Gremme and Stefan
         Kurtz\thanks{please send comments to:
         \texttt{steinbiss@zbh.uni-hamburg.de}}}
+\date{18/02/2016}
 
 
 \begin{document}
--- a/doc/manuals/matstat.tex
+++ b/doc/manuals/matstat.tex
@@ -23,6 +23,7 @@
          Center for Bioinformatics,\\
          University of Hamburg
         \end{tabular}}
+\date{26/01/2008}
 
 \begin{document}
 \maketitle
