2014-07-14 14:54:12 -04:00
|
|
|
cd `dirname $0`
|
2016-09-30 13:12:40 -04:00
|
|
|
VERSION=`git describe|cut -d- -f 1`
|
|
|
|
NUMCOMMITS=`git describe|cut -d- -f 2`
|
|
|
|
if [ "$NUMCOMMITS" != "$VERSION" ]; then
|
2024-06-11 09:25:57 -04:00
|
|
|
VERSION=$VERSION.dev$NUMCOMMITS+g`git describe|cut -d- -f 3`
|
2015-10-15 10:47:05 -04:00
|
|
|
fi
|
|
|
|
echo $VERSION > VERSION
|
2014-07-14 14:54:12 -04:00
|
|
|
sed -e "s/#VERSION#/$VERSION/" setup.py.tmpl > setup.py
|
2018-04-10 16:11:14 -04:00
|
|
|
if [ -f confluent/client.py ]; then
|
|
|
|
echo '__version__ = "'$VERSION'"' > confluent/__init__.py
|
|
|
|
fi
|
2022-04-25 16:15:49 -04:00
|
|
|
cp ../LICENSE .
|