Tweak build.sh
This commit is contained in:
5
build.sh
5
build.sh
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user