diff contrib/make_flys_release/bin/make-importer-package.sh @ 6814:e41059fb4073 double-precision

Importer Doc: Update title page automatically.
author Tom Gottfried <tom.gottfried@intevation.de>
date Sat, 10 Aug 2013 12:25:58 +0200
parents cff1eea9854f
children bb9735fbb680
line wrap: on
line diff
--- 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

http://dive4elements.wald.intevation.org