mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-29 04:50:21 +00:00
bb38ff4588
The build autoversion was not correct. Use git describe instead to be more complete.
9 lines
281 B
Plaintext
Executable File
9 lines
281 B
Plaintext
Executable File
cd `dirname $0`
|
|
VERSION=`git describe|cut -d- -f 1`
|
|
NUMCOMMITS=`git describe|cut -d- -f 2`
|
|
if [ "$NUMCOMMITS" != "$VERSION" ]; then
|
|
VERSION=$VERSION.dev$NUMCOMMITS.g`git describe|cut -d- -f 3`
|
|
fi
|
|
echo $VERSION > VERSION
|
|
sed -e "s/#VERSION#/$VERSION/" setup.py.tmpl > setup.py
|