2021-12-16 Fred Gleason <fredg@paravelsystems.com>

* Consolidated all canonical version declarations in 'versions/'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-12-16 16:07:16 -05:00
parent de8f6ff5a5
commit 4d81883a5d
13 changed files with 86 additions and 52 deletions

View File

@@ -2,7 +2,7 @@ dnl configure.ac
dnl
dnl Autoconf configuration for the MingW32 build of rivwebcapi.
dnl
dnl (C) Copyright 2015-2018 Fred Gleason <fredg@paravelsystems.com>
dnl (C) Copyright 2015-2021 Fred Gleason <fredg@paravelsystems.com>
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License version 2 as
@@ -19,7 +19,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl
dnl Use autoconf to process this into a configure script
AC_INIT([rivwebcapi],m4_esyscmd_s(cat ../../PACKAGE_VERSION))
AC_INIT([rivwebcapi],m4_esyscmd_s(cat ../../versions/PACKAGE_VERSION))
AM_INIT_AUTOMAKE
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
@@ -30,28 +30,12 @@ AC_PROG_CC
AC_PROG_LIBTOOL
#
# Determine Library API Versioning
# API Versioning
#
# From http://www.gnu.org/software/libtool/manual.html#Updating-version-info
#
# 1. Start with version information of 0:0:0 for each libtool library.
# 2. Update the version information only immediately before a public
# release of your software. More frequent updates are unnecessary,
# and only guarantee that the current interface number gets larger
# faster.
# 3. If the library source code has changed at all since the last update,
# then increment 'REVISION' (c:r:a becomes c:r+1:a).
# 4. If any interfaces have been added, removed, or changed since the last
# update, increment 'CURRENT', and set 'REVISION' to 0.
# 5. If any interfaces have been added since the last public release, then
# increment 'AGE'.
# 6. If any interfaces have been removed since the last public release,
# then set 'AGE' to 0.
RIVWEBCAPI_CURRENT=1
RIVWEBCAPI_REVISION=0
RIVWEBCAPI_AGE=1
RIVWEBCAPI_CURRENT=m4_esyscmd(cat ../../versions/RIVWEBCAPI_CURRENT)
RIVWEBCAPI_REVISION=m4_esyscmd(cat ../../versions/RIVWEBCAPI_REVISION)
RIVWEBCAPI_AGE=m4_esyscmd(cat ../../versions/RIVWEBCAPI_AGE)
RIVWEBCAPI_POINT=$(($RIVWEBCAPI_CURRENT - $RIVWEBCAPI_AGE))
AC_SUBST(INTERFACE_RIVWEBCAPI_CURRENT,$RIVWEBCAPI_CURRENT)
AC_SUBST(INTERFACE_RIVWEBCAPI_REVISION,$RIVWEBCAPI_REVISION)
AC_SUBST(INTERFACE_RIVWEBCAPI_AGE,$RIVWEBCAPI_AGE)