Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions gensrc/script/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand 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
17 changes: 6 additions & 11 deletions gensrc/script/gen_build_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading