[postgis-tickets] r16306 - inject a dev timestamp into the docs only when in development

Regina Obe lr at pcorp.us
Mon Jan 15 02:08:09 PST 2018


Author: robe
Date: 2018-01-15 14:08:09 -0800 (Mon, 15 Jan 2018)
New Revision: 16306

Modified:
   trunk/ci/debbie/postgis_release_docs.sh
Log:
inject a dev timestamp into the docs only when in development

Modified: trunk/ci/debbie/postgis_release_docs.sh
===================================================================
--- trunk/ci/debbie/postgis_release_docs.sh	2018-01-15 21:38:08 UTC (rev 16305)
+++ trunk/ci/debbie/postgis_release_docs.sh	2018-01-15 22:08:09 UTC (rev 16306)
@@ -31,6 +31,8 @@
 #  --with-gdalconfig=${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}/bin/gdal-config
 #  --without-raster
 
+export GIT_TIMESTAMP = `git log -1 --pretty=format:%ct`
+
 CPPFLAGS="-I${PGPATH}/include"  \
 LDFLAGS="-L${PGPATH}/lib"  ./configure \
   --with-pgconfig=${PGPATH}/bin/pg_config \
@@ -40,32 +42,39 @@
 cd doc
 
 
-#mv postgis.xml postgis.xml.orig
+mv postgis.xml postgis.xml.orig
 #sed -e "s:</title>:</title><subtitle><subscript>SVN Revision (<emphasis>${POSTGIS_SVN_REVISION}</emphasis>)</subscript></subtitle>:" postgis.xml.orig > postgis.xml
 
+#inject a development time stamp if we are in development branch
+if [[ "${POSTGIS_MICRO_VERSION}"  == *dev* ]] ; then
+  sed -e "s:</title>:</title><subtitle><subscript>DEV TIMESTAMP (<emphasis>${GIT_TIMESTAMP}</emphasis>)</subscript></subtitle>:" postgis.xml.orig > postgis.xml
+fi
+
 make pdf
 rm -rf images
 mkdir images
 cp html/images/* images
 make epub
 make -e chunked-html 2>&1 | tee -a doc-errors.log
-#make update-po  #we do this only for trunk because transifex only follows trunk
-make -C po/ja/ local-html
-make -C po/de/ local-html
-make -C po/pt_BR/ local-html
-make -C po/ko_KR/ local-html
-package="doc-html-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.tar.gz"
-export outdir=html
-tar -czf "$package" --exclude='.svn' --exclude='.git' --exclude='image_src' "$outdir"
 
-if [[ "$reference"  == *trunk* ]] ; then  #only due this for trunk because only trunk follows transifex
+if [[ "$reference"  == *trunk* ]] ; then  #only do this for trunk because only trunk follows transifex
 	make update-po
   make -C po/it_IT/ local-html
   make -C po/pt_BR/ local-html
+  make -C po/ja/ local-html
+  make -C po/de/ local-html
+  make -C po/pt_BR/ local-html
+  make -C po/ko_KR/ local-html
   #make pdf-localized
-fi;
+fi
 
-#mv postgis.xml.orig postgis.xml
+package="doc-html-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.tar.gz"
+export outdir=html
+tar -czf "$package" --exclude='.svn' --exclude='.git' --exclude='image_src' "$outdir"
+
+
+
+mv postgis.xml.orig postgis.xml
 mkdir -p /var/www/postgis_docs/manual-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}
 mkdir -p /var/www/postgis_docs/manual-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}/images
 cp -R html/*.*  /var/www/postgis_docs/manual-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}



More information about the postgis-tickets mailing list