summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rwxr-xr-xcontrib/get_version.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 3308f0da5..fec1069fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@
#
AC_PREREQ([2.69])
# Checks for programs.
-AC_INIT([gnunet],m4_esyscmd([contrib/get_version.sh | tr -d '\n']),[bug-gnunet@gnu.org])
+AC_INIT([gnunet],m4_esyscmd([contrib/get_version.sh]),[bug-gnunet@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])
# 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
index eaa011aba..b57f3524f 100755
--- a/contrib/get_version.sh
+++ b/contrib/get_version.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-VERSION=$(git describe --tags | tr -d '\n')
+VERSION=$(git describe --tags)
VERSION=${VERSION:1:${#VERSION}}
echo $VERSION > .version
-echo $VERSION
+echo -n $VERSION