[postgis-tickets] r16476 - Seems sometimes the postgis_svn_revision.h gets wiped out, so end up with no svn number.

Regina Obe lr at pcorp.us
Sun Mar 18 03:42:35 PDT 2018


Author: robe
Date: 2018-03-18 15:42:35 -0700 (Sun, 18 Mar 2018)
New Revision: 16476

Modified:
   trunk/ci/debbie/postgis_release_docs.sh
Log:
Seems sometimes the postgis_svn_revision.h gets wiped out, so end up with no svn number. 
Explicitly call svn_repo_revision.pl to ensure we have an svn number to read
References #4047 for PostGIS 2.5 (trunk)


Modified: trunk/ci/debbie/postgis_release_docs.sh
===================================================================
--- trunk/ci/debbie/postgis_release_docs.sh	2018-03-18 09:11:41 UTC (rev 16475)
+++ trunk/ci/debbie/postgis_release_docs.sh	2018-03-18 22:42:35 UTC (rev 16476)
@@ -37,7 +37,13 @@
   --with-geosconfig=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}/bin/geos-config \
   --without-raster
 make clean
-export VREV=`cat postgis_svn_revision.h | awk '{print $3}'`
+
+# generating postgis_svn_revision.h in case hasn't been generated
+if test -f utils/svn_repo_revision.pl; then
+	echo "Generating postgis_svn_revision.h"
+	perl utils/svn_repo_revision.pl
+fi
+export VREV="`cat postgis_svn_revision.h | awk '{print $3}'`"
 echo "SVN is ${VREV}"
 cd doc
 



More information about the postgis-tickets mailing list