Code

conntrack plugin: Strip newlie before calling parse_value().
[collectd.git] / version-gen.sh
index bfe87719b93072b74218fb9b7b22fed97f64ba59..386a1c1c005c19986c96fe389535b6bae5bceb66 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
-DEFAULT_VERSION="4.7.3.git"
+DEFAULT_VERSION="4.10.6.git"
 
 VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`"
 
@@ -10,4 +10,8 @@ fi
 
 VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
 
-echo -n "$VERSION"
+if test "x`uname -s`" = "xAIX" || test "x`uname -s`" = "xSunOS" ; then
+       echo "$VERSION\c"
+else 
+       echo -n "$VERSION"
+fi