projects
/
collectd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
contrib/exec-smartctl: Use the environment variables by default.
[collectd.git]
/
version-gen.sh
1
#!/bin/sh
2
3
DEFAULT_VERSION="4.10.0.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
if test "x`uname -s`" = "xAIX" ; then
14
echo "$VERSION\c"
15
else
16
echo -n "$VERSION"
17
fi