Tweak build.sh

This commit is contained in:
Joseph Henry
2022-06-01 15:47:57 -07:00
parent 0bcae7b8e6
commit cc58bceb84
2 changed files with 2 additions and 4 deletions

View File

@@ -1 +0,0 @@
1.8.4

View File

@@ -494,7 +494,7 @@ host-jar()
{ {
check_submodules check_submodules
ARTIFACT="jar" ARTIFACT="jar"
PKG_VERSION=$(cat .version) PKG_VERSION=$(git describe --tags --abbrev=0)
# Default to release # Default to release
BUILD_TYPE=${1:-release} BUILD_TYPE=${1:-release}
if [[ $1 = *"docs"* ]]; then if [[ $1 = *"docs"* ]]; then
@@ -745,13 +745,12 @@ clean()
find . -type d -name "__pycache__" -exec rm -rf {} + find . -type d -name "__pycache__" -exec rm -rf {} +
# Python pkg # Python pkg
cd pkg/pypi && ./build.sh clean # cd pkg/pypi && ./build.sh clean
} }
tag_release() tag_release()
{ {
git tag -a $1 -m $2 git tag -a $1 -m $2
"$(git describe --tags --abbrev=0)" >> .version
git push origin --tags git push origin --tags
} }