Code

src/Makefile: Support parallel builds when creating the manpages.
[collectd.git] / version-gen.sh
index c3100595ea1f04acb4a144229b66709787814d55..b8a8d44b2fc3c11afc7c460d5dc537beff87ff13 100755 (executable)
@@ -1,14 +1,13 @@
 #!/bin/sh
 
-DEFAULT_VERSION="4.6.0.git"
+DEFAULT_VERSION="4.6.5.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"