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