Commit 0b66cbc1 authored by Ondřej Surý's avatar Ondřej Surý

Add LIBKNOT_VERSION_HEX and rename the variables to match libuv naming...

Add LIBKNOT_VERSION_HEX and rename the variables to match libuv naming convention (looks slightly better)
parent e8d15668
......@@ -7,9 +7,9 @@ AC_CONFIG_SRCDIR([src/knot/main.c])
define([gv],[./getver.sh ]$1)
m4_define([libknot_MAJOR],esyscmd(gv(MAJOR)))dnl
m4_define([libknot_MINOR],esyscmd(gv(MINOR)))dnl
m4_define([libknot_REVISION],esyscmd(gv(RELEASE)))dnl
m4_define([libknot_PATCH],esyscmd(gv(PATCH)))dnl
m4_define([libknot_EXTRA],esyscmd(gv(EXTRA)))dnl
m4_define([libknot_PKG_VERSION],[libknot_MAJOR.libknot_MINOR.libknot_REVISION]libknot_EXTRA)]dnl
m4_define([libknot_PKG_VERSION],[libknot_MAJOR.libknot_MINOR.libknot_PATCH]libknot_EXTRA)]dnl
AC_INIT([knot], libknot_PKG_VERSION, [knot-dns@labs.nic.cz])
AM_INIT_AUTOMAKE([gnits subdir-objects no-dist-gzip dist-xz -Wall -Werror])
......
#!/bin/sh
echo -n $(awk '/^#define LIBKNOT_'$1'_VERSION/ { print $3 }' src/libknot/version.h | sed -e 's/"//g')
echo -n $(awk '/^#define LIBKNOT_VERSION_'$1'/ { print $3 }' src/libknot/version.h | sed -e 's/"//g')
......@@ -30,10 +30,14 @@
* gcc so each #define line in this group must also be splittable on
* whitespace, take the form LIBKNOT_*_VERSION and contain the magical
* trailing comment. */
#define LIBKNOT_MAJOR_VERSION 2 /*versiong3d31a91*/
#define LIBKNOT_MINOR_VERSION 1 /*versiong3d31a91*/
#define LIBKNOT_RELEASE_VERSION 0 /*versiong3d31a91*/
#define LIBKNOT_EXTRA_VERSION "-dev" /*versiong3d31a91*/
#define LIBKNOT_VERSION_MAJOR 2
#define LIBKNOT_VERSION_MINOR 1
#define LIBKNOT_VERSION_PATCH 0
#define LIBKNOT_VERSION_EXTRA "-dev"
#define LIBKNOT_VERSION_HEX ((LIBKNOT_VERSION_MAJOR << 16) | \
(LIBKNOT_VERSION_MINOR << 8) | \
(LIBKNOT_VERSION_PATCH))
/* End parsable section. */
/*! @} */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment