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

kxiao pushed a commit to tag 2.0.2.1-rc01
in repository https://gitbox.apache.org/repos/asf/doris.git

commit b324ff3d704a8b5f1547f1c0b506579e4c762bd8
Author: Kang <[email protected]>
AuthorDate: Sun Nov 26 15:55:57 2023 +0800

    add --update-submodule to build.sh
---
 build.sh | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/build.sh b/build.sh
index d76717b383f..14740d497dc 100755
--- a/build.sh
+++ b/build.sh
@@ -48,6 +48,7 @@ Usage: $0 <options>
      --spark-dpp            build Spark DPP application. Default ON.
      --hive-udf             build Hive UDF library for Spark Load. Default ON.
      --be-java-extensions   build Backend java extensions. Default ON.
+     --update-submodule     update git submodule
      --clean                clean and build target
      --output               specify the output directory
      -j                     build Backend parallel
@@ -123,6 +124,7 @@ if ! OPTS="$(getopt \
     -l 'spark-dpp' \
     -l 'hive-udf' \
     -l 'be-java-extensions' \
+    -l 'update-submodule' \
     -l 'clean' \
     -l 'coverage' \
     -l 'help' \
@@ -144,6 +146,7 @@ BUILD_INDEX_TOOL='OFF'
 BUILD_SPARK_DPP=0
 BUILD_BE_JAVA_EXTENSIONS=0
 BUILD_HIVE_UDF=0
+UPDATE_SUBMODULE=0
 CLEAN=0
 HELP=0
 PARAMETER_COUNT="$#"
@@ -204,6 +207,10 @@ else
             BUILD_BE_JAVA_EXTENSIONS=1
             shift
             ;;
+        --update-submodule)
+            UPDATE_SUBMODULE=1
+            shift
+            ;;
         --clean)
             CLEAN=1
             shift
@@ -293,8 +300,11 @@ update_submodule() {
     fi
 }
 
-update_submodule "be/src/apache-orc" "apache-orc" 
"https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz";
-update_submodule "be/src/clucene" "clucene" 
"https://github.com/apache/doris-thirdparty/archive/refs/heads/clucene.tar.gz";
+echo "UPDATE_SUBMODULE ${UPDATE_SUBMODULE}"
+if [[ "${UPDATE_SUBMODULE}" -eq 1 ]]; then
+    update_submodule "be/src/apache-orc" "apache-orc" 
"https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz";
+    update_submodule "be/src/clucene" "clucene" 
"https://github.com/apache/doris-thirdparty/archive/refs/heads/clucene.tar.gz";
+fi
 
 if [[ "${CLEAN}" -eq 1 && "${BUILD_BE}" -eq 0 && "${BUILD_FE}" -eq 0 && 
"${BUILD_SPARK_DPP}" -eq 0 ]]; then
     clean_gensrc


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to