projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial support of GPSd in collectd.
[collectd.git]
/
version-gen.sh
diff --git
a/version-gen.sh
b/version-gen.sh
index
e89e711
..
b09be8e
100755
(executable)
--- a/
version-gen.sh
+++ b/
version-gen.sh
@@
-1,8
+1,8
@@
-#!/
usr/bin/env ba
sh
+#!/
bin/
sh
-DEFAULT_VERSION="5.
4
.0.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"
if test -z "$VERSION"; then
VERSION="$DEFAULT_VERSION"
@@
-10,4
+10,4
@@
fi
VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
-
echo -n
"$VERSION"
+
printf "%s"
"$VERSION"