Skip to content

Commit

Permalink
add --update-submodule to build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokang committed Nov 26, 2023
1 parent 0bb40e0 commit b324ff3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' \
Expand All @@ -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="$#"
Expand Down Expand Up @@ -204,6 +207,10 @@ else
BUILD_BE_JAVA_EXTENSIONS=1
shift
;;
--update-submodule)
UPDATE_SUBMODULE=1
shift
;;
--clean)
CLEAN=1
shift
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b324ff3

Please sign in to comment.