diff --git a/version-gen.sh b/version-gen.sh
index 2223ff956cfad1873d47231ce62e568b8756c82b..6b5e40e5c90cbfd883b5a810005b8cbfd9a436b8 100755 (executable)
--- a/version-gen.sh
+++ b/version-gen.sh
-#!/bin/sh
+#!/usr/bin/env bash
-DEFAULT_VERSION="4.10.5.git"
+DEFAULT_VERSION="5.4.1.git"
-VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`"
+VERSION="`git describe 2> /dev/null | grep collectd | sed -e 's/^collectd-//'`"
if test -z "$VERSION"; then
VERSION="$DEFAULT_VERSION"
VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
-if test "x`uname -s`" = "xAIX" || test "x`uname -s`" = "xSunOS" ; then
- echo "$VERSION\c"
-else
- echo -n "$VERSION"
-fi
+echo -n "$VERSION"