aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac2
-rw-r--r--contrib/get_version.sh5
3 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index f072d0cae..9191107d2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,7 +24,8 @@ EXTRA_DIST = \
24 ABOUT-NLS \ 24 ABOUT-NLS \
25 config.rpath \ 25 config.rpath \
26 acinclude.m4 \ 26 acinclude.m4 \
27 README.1st 27 README.1st \
28 .version
28 29
29gnunetincludedir = $(includedir)/gnunet 30gnunetincludedir = $(includedir)/gnunet
30gnunetinclude_HEADERS = gnunet_config.h 31gnunetinclude_HEADERS = gnunet_config.h
diff --git a/configure.ac b/configure.ac
index 770ba499e..fec1069fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@
21# 21#
22AC_PREREQ([2.69]) 22AC_PREREQ([2.69])
23# Checks for programs. 23# Checks for programs.
24AC_INIT([gnunet],[0.15.4-alpha.0],[bug-gnunet@gnu.org]) 24AC_INIT([gnunet],m4_esyscmd([contrib/get_version.sh]),[bug-gnunet@gnu.org])
25AC_CONFIG_AUX_DIR([build-aux]) 25AC_CONFIG_AUX_DIR([build-aux])
26 26
27# check for legacy option that is no longer supported (#5627) and fail hard 27# check for legacy option that is no longer supported (#5627) and fail hard
diff --git a/contrib/get_version.sh b/contrib/get_version.sh
new file mode 100644
index 000000000..2d2acf0be
--- /dev/null
+++ b/contrib/get_version.sh
@@ -0,0 +1,5 @@
1#!/bin/sh
2VERSION=$(git describe --tags | tr -d '\n')
3VERSION=${VERSION:1:${#VERSION}}
4echo $VERSION > .version
5echo $VERSION