This is an automated email from the ASF dual-hosted git repository.
gavinchou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 7b222ee3a14 [chore](build) Optimize build script (#56027)
7b222ee3a14 is described below
commit 7b222ee3a14ff65da7e42b4f3ae2ba1ff808f035
Author: Gavin Chou <[email protected]>
AuthorDate: Mon Sep 15 15:23:02 2025 +0800
[chore](build) Optimize build script (#56027)
---
gensrc/script/Makefile | 4 +---
gensrc/script/gen_build_version.sh | 17 ++++++-----------
2 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/gensrc/script/Makefile b/gensrc/script/Makefile
index 4d6853aa35d..b476a1c4442 100644
--- a/gensrc/script/Makefile
+++ b/gensrc/script/Makefile
@@ -20,8 +20,6 @@
BUILD_DIR = ${CURDIR}/../build/
FE_TARGET_DIR = ${CURDIR}/../../fe/fe-core/target/generated-sources/build
-export DORIS_VENDOR ?= doris
-
# Prerequisites on the right side of '|' is only order
all: gen_builtins gen_version
.PHONY: all
@@ -48,5 +46,5 @@ gen_builtins: ${GEN_BUILTINS_OUTPUT}
# generate version info
gen_version:
- ${CURDIR}/gen_build_version.sh $(DORIS_VENDOR)
+ ${CURDIR}/gen_build_version.sh
.PHONY: gen_version
diff --git a/gensrc/script/gen_build_version.sh
b/gensrc/script/gen_build_version.sh
index f17927b4d87..36f1072201e 100755
--- a/gensrc/script/gen_build_version.sh
+++ b/gensrc/script/gen_build_version.sh
@@ -27,17 +27,12 @@
set -eo pipefail
-vendor=doris
-if [[ $1 != "" ]]; then
- vendor=$1
-fi
-
-build_version_prefix="${vendor}"
-build_version_major=0
-build_version_minor=0
-build_version_patch=0
-build_version_hotfix=0
-build_version_rc_version=""
+build_version_prefix="${DORIS_BUILD_VERSION_PREFIX-doris}"
+build_version_major="${DORIS_BUILD_VERSION_MAJOR-0}"
+build_version_minor="${DORIS_BUILD_VERSION_MINOR-0}"
+build_version_patch="${DORIS_BUILD_VERSION_PATCH-0}"
+build_version_hotfix="${DORIS_BUILD_VERSION_HOTFIX-0}"
+build_version_rc_version="${DORIS_BUILD_VERSION_RC_VERSION-""}"
build_version="${build_version_prefix}-${build_version_major}.${build_version_minor}.${build_version_patch}"
if [[ ${build_version_hotfix} -gt 0 ]]; then
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]