diff --git a/build/build.sh b/build/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..43da39a76cfa3d9e5660373b1c286e1a3d78f73e --- /dev/null +++ b/build/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# 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. +# 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 0000000000000000000000000000000000000000..a72ab33153802240c05a1fafc4901f0d55093135 --- /dev/null +++ b/contrib/build_all.sh @@ -0,0 +1,36 @@ +#!/bin/bash +# 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. +# 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