From: Regina Obe Date: Sun, 18 Mar 2018 22:42:35 +0000 (+0000) Subject: Seems sometimes the postgis_svn_revision.h gets wiped out, so end up with no svn... X-Git-Tag: 2.5.0alpha~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3e4ae3d14492bf5ff5035c5816e2bc47e709416;p=postgis 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) git-svn-id: http://svn.osgeo.org/postgis/trunk@16476 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/ci/debbie/postgis_release_docs.sh b/ci/debbie/postgis_release_docs.sh index 7f93ce719..d2acc14c8 100644 --- a/ci/debbie/postgis_release_docs.sh +++ b/ci/debbie/postgis_release_docs.sh @@ -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