diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2013-11-17 13:40:36 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-11-17 20:05:25 +0400 |
commit | 4c4054f156d264a2c657b7fee24c85e0142f9091 (patch) | |
tree | c2bb7f876da3a554796b2c06068b547228109afa /m4 | |
parent | 6d09ad11189adb9edf87b02094590ad6b6f0db29 (diff) | |
download | bdwgc-4c4054f156d264a2c657b7fee24c85e0142f9091.tar.gz |
Bump version to 7.4.0; change policy regarding version numbersgc7_4_0
* ChangeLog: Update.
* README.md: Bump version.
* configure.ac (AC_INIT): Likewise.
* include/gc_version.h (GC_TMP_VERSION_MINOR): Likewise.
* alloc.c (GC_version, GC_get_version): Replace GC_TMP_ALPHA_VERSION
with GC_VERSION_MICRO.
* doc/debugging.html: Remove comment about "alpha" versions.
* doc/overview.html: Likewise.
* include/gc.h (GC_get_version): Update comment.
* include/gc_version.h (GC_NOT_ALPHA): Remove.
* include/gc_version.h (GC_TMP_ALPHA_VERSION): Replace with
GC_TMP_VERSION_MICRO; add comment about policy.
* m4/gc_set_version.m4 (GC_ALPHA_VERSION): Replace with
GC_VERSION_MICRO; update comments; adjust version format test.
* tests/test.c (GC_ALPHA_VERSION): Remove.
* tools/add_gc_prefix.c (GC_ALPHA_VERSION): Likewise.
* tools/gcname.c (GC_ALPHA_VERSION): Likewise.
* tests/test.c (CHECH_GCLIB_VERSION): Replace GC_ALPHA_VERSION with
GC_VERSION_MICRO.
* tools/add_gc_prefix.c (main): Replace "gc%d.%d[alpha%d]" print
format with "gc-%d.%d.%d" one.
* tools/gcname.c (main): Likewise.
* windows-untested/gc.ver (_BETA, GC_VERSION_MICRO): Remove.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/gc_set_version.m4 | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/m4/gc_set_version.m4 b/m4/gc_set_version.m4 index e805a7a3..465e4f0f 100644 --- a/m4/gc_set_version.m4 +++ b/m4/gc_set_version.m4 @@ -9,26 +9,19 @@ # modified is included with the above copyright notice. # GC_SET_VERSION -# sets and AC_DEFINEs GC_VERSION_MAJOR, GC_VERSION_MINOR and GC_ALPHA_VERSION +# sets and AC_DEFINEs GC_VERSION_MAJOR, GC_VERSION_MINOR and GC_VERSION_MICRO # based on the contents of PACKAGE_VERSION; PACKAGE_VERSION must conform to -# [0-9]+[.][0-9]+(alpha[0.9]+)? -# in lex syntax; if there is no alpha number, GC_ALPHA_VERSION is empty +# [0-9]+[.][0-9]+[.][0-9]+ # AC_DEFUN([GC_SET_VERSION], [ AC_MSG_CHECKING(GC version numbers) GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([[0-9]][[0-9]]*\)[[.]].*$/\1/g'` GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[[^.]]*[[.]]\([[0-9]][[0-9]]*\).*$/\1/g'` - GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[[^.]]*[[.]][[0-9]]*//'` - - case "$GC_ALPHA_VERSION" in - alpha*) - GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \ - | sed 's/alpha\([[0-9]][[0-9]]*\)/\1/'` ;; - *) GC_ALPHA_MAJOR='' ;; - esac + GC_VERSION_MICRO=`echo $PACKAGE_VERSION | sed 's/^[[^.]]*[[.]][[^.]]*[[.]]\([[0-9]][[0-9]]*\)$/\1/g'` if test :$GC_VERSION_MAJOR: = :: \ - -o :$GC_VERSION_MINOR: = :: ; + -o :$GC_VERSION_MINOR: = :: \ + -o :$GC_VERSION_MICRO: = :: ; then AC_MSG_RESULT(invalid) AC_MSG_ERROR([nonconforming PACKAGE_VERSION='$PACKAGE_VERSION']) @@ -38,12 +31,10 @@ AC_DEFUN([GC_SET_VERSION], [ [The major version number of this GC release.]) AC_DEFINE_UNQUOTED([GC_VERSION_MINOR], $GC_VERSION_MINOR, [The minor version number of this GC release.]) - if test :$GC_ALPHA_VERSION: != :: ; then - AC_DEFINE_UNQUOTED([GC_ALPHA_VERSION], $GC_ALPHA_VERSION, - [The alpha version number, if applicable.]) - fi + AC_DEFINE_UNQUOTED([GC_VERSION_MICRO], $GC_VERSION_MICRO, + [The micro version number of this GC release.]) AC_MSG_RESULT(major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \ -${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION) + micro=$GC_VERSION_MICRO) ]) sinclude(libtool.m4) |