aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
-rwxr-xr-xcontrib/get_version.sh17
-rw-r--r--po/POTFILES.in1
-rw-r--r--src/include/gnunet_config.h.in6
4 files changed, 26 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 79b9d82d5..7ba1d27a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,8 +23,14 @@ AC_PREREQ([2.69])
23AC_INIT([gnunet],[m4_esyscmd_s(sh contrib/get_version.sh)],[bug-gnunet@gnu.org]) 23AC_INIT([gnunet],[m4_esyscmd_s(sh contrib/get_version.sh)],[bug-gnunet@gnu.org])
24 24
25gnunet_version=m4_esyscmd_s(sh contrib/get_version.sh) 25gnunet_version=m4_esyscmd_s(sh contrib/get_version.sh)
26gnunet_major_version=m4_esyscmd_s(sh contrib/get_version.sh --major)
27gnunet_minor_version=m4_esyscmd_s(sh contrib/get_version.sh --minor)
28gnunet_micro_version=m4_esyscmd_s(sh contrib/get_version.sh --micro)
26 29
27AC_SUBST([gnunet_version]) 30AC_SUBST([gnunet_version])
31AC_SUBST([gnunet_major_version])
32AC_SUBST([gnunet_minor_version])
33AC_SUBST([gnunet_micro_version])
28 34
29AC_CONFIG_AUX_DIR([build-aux]) 35AC_CONFIG_AUX_DIR([build-aux])
30AC_CONFIG_MACRO_DIRS([m4]) 36AC_CONFIG_MACRO_DIRS([m4])
diff --git a/contrib/get_version.sh b/contrib/get_version.sh
index 2a41ed4d6..7366c6bf6 100755
--- a/contrib/get_version.sh
+++ b/contrib/get_version.sh
@@ -15,4 +15,19 @@ if test "x$VERSION" = "x"
15then 15then
16 VERSION="unknown" 16 VERSION="unknown"
17fi 17fi
18echo "$VERSION" 18case $1 in
19"--major")
20 echo "$VERSION" | sed 's/\(^[0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/g'
21 ;;
22"--minor")
23 echo "$VERSION" | sed 's/\(^[0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/g'
24 ;;
25"--micro")
26 echo "$VERSION" | sed 's/\(^[0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g'
27 ;;
28"--git")
29 echo "$VERSION" | sed 's/\(^[0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g'
30 ;;
31*)
32 echo "$VERSION"
33esac
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 97e203b0c..95b5c3396 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -516,6 +516,7 @@ src/util/client.c
516src/util/common_allocation.c 516src/util/common_allocation.c
517src/util/common_endian.c 517src/util/common_endian.c
518src/util/common_logging.c 518src/util/common_logging.c
519src/util/compress.c
519src/util/configuration.c 520src/util/configuration.c
520src/util/configuration_helper.c 521src/util/configuration_helper.c
521src/util/consttime_memcmp.c 522src/util/consttime_memcmp.c
diff --git a/src/include/gnunet_config.h.in b/src/include/gnunet_config.h.in
index 63ffd84bd..5dff759ae 100644
--- a/src/include/gnunet_config.h.in
+++ b/src/include/gnunet_config.h.in
@@ -34,13 +34,13 @@
34#define GNUNET_VERSION "@gnunet_version@" 34#define GNUNET_VERSION "@gnunet_version@"
35 35
36/* Major version */ 36/* Major version */
37#define GNUNET_MAJOR_VERSION 0 37#define GNUNET_MAJOR_VERSION @gnunet_major_version@
38 38
39/* Micro version */ 39/* Micro version */
40#define GNUNET_MINOR_VERSION 18 40#define GNUNET_MINOR_VERSION @gnunet_minor_version@
41 41
42/* Mico version */ 42/* Mico version */
43#define GNUNET_MICRO_VERSION 2 43#define GNUNET_MICRO_VERSION @gnunet_micro_version@
44 44
45/* Set to 1 is this is an experimental build */ 45/* Set to 1 is this is an experimental build */
46#define GNUNET_EXPERIMENTAL @enable_experimental@ 46#define GNUNET_EXPERIMENTAL @enable_experimental@