tokkee.org
Code
projects
/
collectd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2137 from maryamtahhan/feat_ovs_stats
[collectd.git]
/
version-gen.sh
1
#!/bin/sh
2
3
DEFAULT_VERSION="5.7.1.git"
4
5
if [ -d .git ]; then
6
VERSION="`git describe --dirty=+ --abbrev=7 2> /dev/null | grep collectd | sed -e 's/^collectd-//' -e 's/-/./g'`"
7
fi
8
9
if test -z "$VERSION"; then
10
VERSION="$DEFAULT_VERSION"
11
fi
12
13
printf "%s" "$VERSION"