diff --git a/version-gen.sh b/version-gen.sh
index 1ac1bc150cb86682af346cf200a0c4838aa9c927..b09be8e78227f350edbe8fc6bf96634f67a0a057 100755 (executable)
--- a/version-gen.sh
+++ b/version-gen.sh
-#!/usr/bin/env bash
+#!/bin/sh
-DEFAULT_VERSION="5.3.1.git"
+DEFAULT_VERSION="5.5.0.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'`"
-echo -n "$VERSION"
+printf "%s" "$VERSION"