tokkee.org
Code
projects
/
collectd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1ac1bc150cb86682af346cf200a0c4838aa9c927
[collectd.git]
/
version-gen.sh
1
#!/usr/bin/env bash
2
3
DEFAULT_VERSION="5.3.1.git"
4
5
VERSION="`git describe 2> /dev/null | sed -e 's/^collectd-//'`"
6
7
if test -z "$VERSION"; then
8
VERSION="$DEFAULT_VERSION"
9
fi
10
11
VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
12
13
echo -n "$VERSION"