]> granicus.if.org Git - postgis/commitdiff
Seems sometimes the postgis_svn_revision.h gets wiped out, so end up with no svn...
authorRegina Obe <lr@pcorp.us>
Sun, 18 Mar 2018 22:42:35 +0000 (22:42 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 18 Mar 2018 22:42:35 +0000 (22:42 +0000)
Explicitly call svn_repo_revision.pl to ensure we have an svn number to read
References #4047 for PostGIS 2.5 (trunk)

git-svn-id: http://svn.osgeo.org/postgis/trunk@16476 b70326c6-7e19-0410-871a-916f4a2858ee

ci/debbie/postgis_release_docs.sh

index 7f93ce71990b1f9d4e3101171b560c8a31186932..d2acc14c848e42b6a22acfa5c1150c7cfd1c4e83 100644 (file)
@@ -37,7 +37,13 @@ LDFLAGS="-L${PGPATH}/lib"  ./configure \
   --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