diff options
-rw-r--r-- | configure.ac | 6 | ||||
-rwxr-xr-x | contrib/get_version.sh | 17 | ||||
-rw-r--r-- | po/POTFILES.in | 1 | ||||
-rw-r--r-- | src/include/gnunet_config.h.in | 6 |
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]) | |||
23 | AC_INIT([gnunet],[m4_esyscmd_s(sh contrib/get_version.sh)],[bug-gnunet@gnu.org]) | 23 | AC_INIT([gnunet],[m4_esyscmd_s(sh contrib/get_version.sh)],[bug-gnunet@gnu.org]) |
24 | 24 | ||
25 | gnunet_version=m4_esyscmd_s(sh contrib/get_version.sh) | 25 | gnunet_version=m4_esyscmd_s(sh contrib/get_version.sh) |
26 | gnunet_major_version=m4_esyscmd_s(sh contrib/get_version.sh --major) | ||
27 | gnunet_minor_version=m4_esyscmd_s(sh contrib/get_version.sh --minor) | ||
28 | gnunet_micro_version=m4_esyscmd_s(sh contrib/get_version.sh --micro) | ||
26 | 29 | ||
27 | AC_SUBST([gnunet_version]) | 30 | AC_SUBST([gnunet_version]) |
31 | AC_SUBST([gnunet_major_version]) | ||
32 | AC_SUBST([gnunet_minor_version]) | ||
33 | AC_SUBST([gnunet_micro_version]) | ||
28 | 34 | ||
29 | AC_CONFIG_AUX_DIR([build-aux]) | 35 | AC_CONFIG_AUX_DIR([build-aux]) |
30 | AC_CONFIG_MACRO_DIRS([m4]) | 36 | AC_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" | |||
15 | then | 15 | then |
16 | VERSION="unknown" | 16 | VERSION="unknown" |
17 | fi | 17 | fi |
18 | echo "$VERSION" | 18 | case $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" | ||
33 | esac | ||
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 | |||
516 | src/util/common_allocation.c | 516 | src/util/common_allocation.c |
517 | src/util/common_endian.c | 517 | src/util/common_endian.c |
518 | src/util/common_logging.c | 518 | src/util/common_logging.c |
519 | src/util/compress.c | ||
519 | src/util/configuration.c | 520 | src/util/configuration.c |
520 | src/util/configuration_helper.c | 521 | src/util/configuration_helper.c |
521 | src/util/consttime_memcmp.c | 522 | src/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@ |