You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2025/11/28 01:41:12 UTC

(doris) branch branch-4.0 updated: [chore](build) Optimize build script (#56027) (#58464)

This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 80a4232a3b0 [chore](build) Optimize build script (#56027) (#58464)
80a4232a3b0 is described below

commit 80a4232a3b0e7beb5a8d84afcce76710a61681cf
Author: Gavin Chou <ga...@selectdb.com>
AuthorDate: Fri Nov 28 09:41:05 2025 +0800

    [chore](build) Optimize build script (#56027) (#58464)
    
    pick #56027  again
---
 gensrc/script/gen_build_version.sh | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/gensrc/script/gen_build_version.sh b/gensrc/script/gen_build_version.sh
index 961146ce9b2..b853ebc483c 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=4
-build_version_minor=0
-build_version_patch=2
-build_version_hotfix=0
-build_version_rc_version="rc01"
+build_version_prefix="${DORIS_BUILD_VERSION_PREFIX-doris}"
+build_version_major="${DORIS_BUILD_VERSION_MAJOR-4}"
+build_version_minor="${DORIS_BUILD_VERSION_MINOR-0}"
+build_version_patch="${DORIS_BUILD_VERSION_PATCH-2}"
+build_version_hotfix="${DORIS_BUILD_VERSION_HOTFIX-0}"
+build_version_rc_version="${DORIS_BUILD_VERSION_RC_VERSION-"rc01"}"
 
 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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org