2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 19:40:12 +00:00

Merge pull request #43 from jjohnson42/master

Change to versioning derivation from git data
This commit is contained in:
Jarrod Johnson 2015-10-19 14:07:21 -04:00
commit 597bc9413f
3 changed files with 6 additions and 3 deletions

View File

@ -1 +0,0 @@
1.2

View File

@ -1 +0,0 @@
1.2

View File

@ -1,3 +1,8 @@
cd `dirname $0`
VERSION=`cat VERSION`
VERSION=`git tag -l|tail -n 1`
NUMCOMMITS=`git rev-list $VERSION..HEAD|wc -l`
if [ "$NUMCOMMITS" -ne 0 ]; then
VERSION=$VERSION.dev$NUMCOMMITS.g`git rev-parse --short HEAD`
fi
echo $VERSION > VERSION
sed -e "s/#VERSION#/$VERSION/" setup.py.tmpl > setup.py