Code

Bumped version to 4.8.2; Updated ChangeLog.
[collectd.git] / version-gen.sh
index 865a0756ca8a953d10891bd59d2521f480a70862..f1a2fc29440c19879ba721919ad72ee20f925f90 100755 (executable)
@@ -1,14 +1,13 @@
 #!/bin/sh
 
-DEFAULT_VERSION="4.3.4.git"
+DEFAULT_VERSION="4.8.2.git"
 
-VERSION="$( git describe 2> /dev/null | sed -e 's/^collectd-//' )"
+VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`"
 
 if test -z "$VERSION"; then
        VERSION="$DEFAULT_VERSION"
 fi
 
-VERSION=$( echo "$VERSION" | sed -e 's/-/./g' )
-
-echo -n $VERSION
+VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
 
+echo -n "$VERSION"