From 5186d3b053ec6bc95b74e9a5122c583e473f39d2 Mon Sep 17 00:00:00 2001 From: kongchibin <530825620@qq.com> Date: Thu, 17 Jun 2021 16:16:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0C=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/build.sh | 24 ++++++++++++++++++++++++ contrib/build_all.sh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 build/build.sh create mode 100644 contrib/build_all.sh diff --git a/build/build.sh b/build/build.sh new file mode 100644 index 000000000..9b886a53a --- /dev/null +++ b/build/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Copyright 2020 Huawei Technologies Co., Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License.mitations under the License. + +set -e +current_folder="$( cd "$(dirname "$0")" ;pwd -P )" + +bash $current_folder/../contrib/build_all.sh + +exit 0 + + + diff --git a/contrib/build_all.sh b/contrib/build_all.sh new file mode 100644 index 000000000..4066d8118 --- /dev/null +++ b/contrib/build_all.sh @@ -0,0 +1,36 @@ +#!/bin/bash +# Copyright 2020 Huawei Technologies Co., Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e +current_folder="$( cd "$(dirname "$0")" ;pwd -P )" + +SAMPLE_FOLDER=( +) + + +err_flag=0 +for sample in ${SAMPLE_FOLDER[@]};do + cd ${current_folder}/${sample} + bash build.sh || { + echo -e "Failed to build ${sample}" + err_flag=1 + } +done + + +if [ ${err_flag} -eq 1 ]; then + exit 1 +fi +exit 0 \ No newline at end of file -- Gitee From d846e4afdc89864196f241ca93cacb2224144b03 Mon Sep 17 00:00:00 2001 From: kongchibin <530825620@qq.com> Date: Thu, 17 Jun 2021 16:44:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9CI=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/build.sh | 2 +- contrib/build_all.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build.sh b/build/build.sh index 9b886a53a..43da39a76 100644 --- a/build/build.sh +++ b/build/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2020 Huawei Technologies Co., Ltd +# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contrib/build_all.sh b/contrib/build_all.sh index 4066d8118..a72ab3315 100644 --- a/contrib/build_all.sh +++ b/contrib/build_all.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2020 Huawei Technologies Co., Ltd +# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -- Gitee