From: Nick Mathewson Date: Sat, 19 Dec 2009 04:37:50 +0000 (-0500) Subject: Set all instances of the version number correctly. X-Git-Tag: release-2.0.4-alpha~116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a112d3c0748d8e65c0fd36c2717dd3fe7c0639b;p=libevent Set all instances of the version number correctly. Note that we've made two subtle mistakes: we are supposed to suffix any non-released version with "-dev", and we're supposed to use the last byte of the numeric version to indicate whether we have done this. For example, when 2.0.4-alpha is released, its numeric versin will be 0x 02 00 04 00. As soon as we tag it, we will change the version in the git repository to 2.0.4-alpha-dev, whose numeric version will be 0x 02 00 04 01 or something. --- diff --git a/WIN32-Code/event-config.h b/WIN32-Code/event-config.h index 4a7f6b7e..b43a0ea3 100644 --- a/WIN32-Code/event-config.h +++ b/WIN32-Code/event-config.h @@ -274,7 +274,7 @@ /* #undef _EVENT_HAVE_WORKING_KQUEUE */ /* Numeric representation of the version */ -#define _EVENT_NUMERIC_VERSION 0x02000101 +#define _EVENT_NUMERIC_VERSION 0x02000302 /* Name of package */ #define _EVENT_PACKAGE "libevent" @@ -317,7 +317,7 @@ #define _EVENT_TIME_WITH_SYS_TIME 1 /* Version number of package */ -#define _EVENT_VERSION "2.0.1-alpha-dev" +#define _EVENT_VERSION "2.0.3-alpha-dev" /* Define to appropriate substitue if compiler doesnt have __func__ */ #define _EVENT___func__ __FUNCTION__ diff --git a/configure.in b/configure.in index 74598757..67f0816f 100644 --- a/configure.in +++ b/configure.in @@ -5,9 +5,9 @@ AC_INIT(event.c) AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE(libevent,2.0.3-alpha) +AM_INIT_AUTOMAKE(libevent,2.0.3-alpha-dev) AM_CONFIG_HEADER(config.h) -AC_DEFINE(NUMERIC_VERSION, 0x02000301, [Numeric representation of the version]) +AC_DEFINE(NUMERIC_VERSION, 0x02000302, [Numeric representation of the version]) dnl Initialize prefix. if test "$prefix" = "NONE"; then