[PATCH 17 of 17] Importer Doc: Update title page automatically

Wald Commits scm-commit at wald.intevation.org
Sat Aug 10 12:30:22 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1376130358 -7200
# Branch double-precision
# Node ID e41059fb40731133efbaefc81271f6d534114ef4
# Parent  aa975386d7a93ee4707244fc0e1177fded924751
Importer Doc: Update title page automatically.

diff -r aa975386d7a9 -r e41059fb4073 backend/doc/documentation/de/importer-manual.tex
--- a/backend/doc/documentation/de/importer-manual.tex	Fri Aug 09 21:40:30 2013 +0200
+++ b/backend/doc/documentation/de/importer-manual.tex	Sat Aug 10 12:25:58 2013 +0200
@@ -26,9 +26,9 @@
 % Document DATE and VERSION
 % set these values when releasing a new version
 
-\newcommand{\documentdate}{19. Februar 2013}
-\newcommand{\documentversion}{1.1}
-\newcommand{\documentrevision}{rev5062}
+\newcommand{\documentdate}{\today}
+\newcommand{\documentversion}{1.2}
+\newcommand{\documentrevision}{rev6811}
 \newcommand{\documentID}{importer-manual.tex}
 %----------------------------------------------
 
diff -r aa975386d7a9 -r e41059fb4073 backend/doc/documentation/de/title.tex
--- a/backend/doc/documentation/de/title.tex	Fri Aug 09 21:40:30 2013 +0200
+++ b/backend/doc/documentation/de/title.tex	Sat Aug 10 12:25:58 2013 +0200
@@ -44,6 +44,7 @@
  {\bf Authors}:\\
  Ingo Weinzierl$<$ingo.weinzierl at intevation.de$>$\\
  Sascha Teichmann $<$sascha.teichmann at intevation.de$>$\\
+ Tom Gottfried $<$tom.gottfried at intevation.de$>$\\
  {\bf Intevation GmbH},\\
  Neuer Graben 17, 49074 Osnabrück, Germany\\
  Tel: ++49 541 33 50 83 - 0 \\
diff -r aa975386d7a9 -r e41059fb4073 contrib/make_flys_release/bin/make-importer-package.sh
--- a/contrib/make_flys_release/bin/make-importer-package.sh	Fri Aug 09 21:40:30 2013 +0200
+++ b/contrib/make_flys_release/bin/make-importer-package.sh	Sat Aug 10 12:25:58 2013 +0200
@@ -47,8 +47,12 @@
 
 cp ${FLYS_DIR}/backend/doc/schema/*.sql $PKG_DIR/schema
 
+# create PDF of manual
+REV=`hg parent | sed -n '1s/[[:alnum:]]*: *\([0-9]*\):.*/\1/;1p'`
 cd ${FLYS_DIR}/backend/doc/documentation/de/
-make importer-manual.pdf
+sed -i "s/documentrevision..rev[0-9]*/documentrevision}{rev$REV/" \
+    importer-manual.tex
+pdflatex importer-manual.tex
 cp importer-manual.pdf $PKG_DIR
 
 sed -i 's/shpimporter\/shp/geodaesie\/shp/' $PKG_DIR/run_geo.sh


More information about the Dive4elements-commits mailing list