From cbe12cfb69bfd0646ace0570a50ee466a3ddafc7 Mon Sep 17 00:00:00 2001 From: zclllyybb Date: Fri, 19 May 2023 09:22:36 +0800 Subject: [PATCH] [chore](build) Support specifying output path #19669 now we could ./build.sh --be --fe --output PATH_TO_BINARY_YOU_LIKE did not modify the default value --- build.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 222d50c3b4..0640c13b23 100755 --- a/build.sh +++ b/build.sh @@ -48,6 +48,7 @@ Usage: $0 --hive-udf build Hive UDF library for Spark Load. Default ON. --java-udf build Java UDF. Default ON. --clean clean and build target + --output specify the output directory -j build Backend parallel Environment variables: @@ -65,6 +66,7 @@ Usage: $0 $0 --broker build Broker $0 --be --fe build Backend, Frontend, Spark Dpp application and Java UDF library $0 --be --coverage build Backend with coverage enabled + $0 --be --output PATH build Backend, the result will be output to PATH(relative paths are available) USE_AVX2=0 $0 --be build Backend and not using AVX2 instruction. USE_AVX2=0 STRIP_DEBUG_INFO=ON $0 build all and not using AVX2 instruction, and strip the debug info for Backend @@ -121,6 +123,7 @@ if ! OPTS="$(getopt \ -l 'clean' \ -l 'coverage' \ -l 'help' \ + -l 'output:' \ -o 'hj:' \ -- "$@")"; then usage @@ -213,6 +216,10 @@ else PARAMETER_FLAG=1 shift 2 ;; + --output) + DORIS_OUTPUT="$2" + shift 2 + ;; --) shift break @@ -538,7 +545,8 @@ if [[ "${FE_MODULES}" != '' ]]; then fi # Clean and prepare output dir -DORIS_OUTPUT=${DORIS_HOME}/output/ +DORIS_OUTPUT=${DORIS_OUTPUT:="${DORIS_HOME}/output/"} +echo "OUTPUT DIR=${DORIS_OUTPUT}" mkdir -p "${DORIS_OUTPUT}" # Copy Frontend and Backend