mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Change to versioning derivation from git data
Rather than manually curate the VERSION, use git tags and auto-create intermediate builds with unique identifiers. Identify both number of commits to indicate order and the git short rev to see which rev matches.
This commit is contained in:
parent
31a191cb10
commit
e53a9f83f4
@ -1 +0,0 @@
|
||||
1.2
|
@ -1 +0,0 @@
|
||||
1.2
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user