]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
maint: Define API version manually
authorMathieu Lirzin <mthl@gnu.org>
Sat, 8 Jul 2017 20:32:19 +0000 (22:32 +0200)
committerMathieu Lirzin <mthl@gnu.org>
Thu, 31 Aug 2017 10:14:00 +0000 (12:14 +0200)
* configure.ac (APIVERSION): Define it to 1.15a.
* bootstrap (APIVERSION): Parse 'configure.ac' to get it.

bootstrap
configure.ac

index 1382a9fe8849ad5b766f1d9f10cb0ba2fcc5e169..82f3859a221324214829ba53c1e6da1504454b57 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -37,6 +37,7 @@ export AUTOM4TE  # ditto
 
 # Variables to substitute.
 VERSION=`sed -ne '/AC_INIT/s/^[^[]*\[[^[]*\[\([^]]*\)\].*$/\1/p' configure.ac`
+APIVERSION=`sed -n 's/^APIVERSION=//p' configure.ac`
 PACKAGE=automake
 datadir=.
 # This should be automatically updated by the 'update-copyright'
@@ -52,10 +53,6 @@ else
   BOOTSTRAP_SHELL=/bin/sh
 fi
 
-# Read the rule for calculating APIVERSION and execute it.
-apiver_cmd=`sed -ne 's/\[\[/[/g;s/\]\]/]/g;/^APIVERSION=/p' configure.ac`
-eval "$apiver_cmd"
-
 # Sanity checks.
 if test -z "$VERSION"; then
   echo "$me: cannot find VERSION" >&2
index 7f91f9609b354e516948c7bd9ba3724c9a388c45..806dcce4348995a777dc0856424cae04847c8e24 100644 (file)
@@ -49,12 +49,7 @@ AC_SUBST([RELEASE_YEAR])
 
 # The API version is the base version.  We must guarantee
 # compatibility for all releases with the same API version.
-# Our current rule is that:
-# * All releases, including the prereleases, in an X.Y series
-#   are compatible.  So 1.5.1c is compatible with 1.5.
-# * Prereleases on the trunk are all incompatible -- 1.5b and 1.5c
-#   aren't the same.
-APIVERSION=`echo "$VERSION" | sed -e 's/^\([[0-9]]*\.[[0-9]]*[[a-z]]*\).*$/\1/'`
+APIVERSION=1.15a
 AC_SUBST([APIVERSION])
 
 AC_SUBST([pkgvdatadir], ["\${datadir}/$PACKAGE-$APIVERSION"])