From: Regina Obe Date: Sun, 18 Mar 2018 22:43:31 +0000 (+0000) Subject: Seems sometimes the postgis_svn_revision.h gets wiped out, so end up with no svn... X-Git-Tag: 2.4.4~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6878552891935834533fcfa86b591039226368de;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.4 git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@16477 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