[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-1197-ga3b73f28b

git at osgeo.org git at osgeo.org
Sun Jul 9 21:57:35 PDT 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  a3b73f28bf5888d6b7cc4d4597aa3fc2fd9c5d69 (commit)
      from  a1b3ebec1b23d36af3803715e9cb47558632b7fa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a3b73f28bf5888d6b7cc4d4597aa3fc2fd9c5d69
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Jul 10 06:57:10 2023 +0200

    Use separate script to extract maj/min version
    
    Fixes autoconf 2.69

diff --git a/configure.ac b/configure.ac
index 92ea3b22d..000cd7d21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,14 +9,7 @@ dnl * the terms of the GNU General Public Licence. See the COPYING file.
 dnl *
 dnl **********************************************************************
 
-AC_INIT(
-  [postgis],
-  [m4_esyscmd_s(
-    [grep ^POSTGIS_MAJOR_VERSION Version.config | cut -d= -f2]
-  ).m4_esyscmd_s(
-    [grep ^POSTGIS_MINOR_VERSION Version.config | cut -d= -f2]
-  )]
-)
+AC_INIT( [postgis], m4_esyscmd_s([utils/extract_majmin_version.sh]) )
 
 # test to see if srcdir already configured, when
 # building out of tree
diff --git a/utils/extract_majmin_version.sh b/utils/extract_majmin_version.sh
new file mode 100755
index 000000000..ecc2ee797
--- /dev/null
+++ b/utils/extract_majmin_version.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+grep '^POSTGIS_.*OR' Version.config |
+  cut -d= -f2 |
+  tr '\n' '.' |
+  sed 's/\.$//'

-----------------------------------------------------------------------

Summary of changes:
 configure.ac                    | 9 +--------
 utils/extract_majmin_version.sh | 6 ++++++
 2 files changed, 7 insertions(+), 8 deletions(-)
 create mode 100755 utils/extract_majmin_version.sh


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list