projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curl_xml: fix 3 small memory leaks
[collectd.git]
/
version-gen.sh
diff --git
a/version-gen.sh
b/version-gen.sh
index
e0db73b
..
0b75fc2
100755
(executable)
--- a/
version-gen.sh
+++ b/
version-gen.sh
@@
-1,14
+1,17
@@
-#!/
bin/
sh
+#!/
usr/bin/env ba
sh
-DEFAULT_VERSION="4.
3.3
.git"
+DEFAULT_VERSION="4.
10.9
.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
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'`"
+if test "x`uname -s`" = "xAIX" || test "x`uname -s`" = "xSunOS" ; then
+ echo "$VERSION\c"
+else
+ echo -n "$VERSION"
+fi