29 lines
795 B
Bash
29 lines
795 B
Bash
#!/bin/bash
|
|
# *************************************************************************
|
|
# Copyright: (c) Huawei Technologies Co., Ltd. 2022. All rights reserved
|
|
#
|
|
# description: the script that build DCC in component
|
|
# date: 2022-03-01
|
|
# version: 3.0.0
|
|
# history:
|
|
#
|
|
# *************************************************************************
|
|
|
|
# Clone DCC code to local dir
|
|
DCC_REPO=https://gitee.com/opengauss/DCC.git
|
|
DCC_BRANCH=master
|
|
|
|
echo "clone dcc code"
|
|
if [ -d DCC ]; then
|
|
rm -rf DCC
|
|
fi
|
|
git clone ${DCC_REPO} -b ${DCC_BRANCH} DCC
|
|
cd DCC
|
|
|
|
LOCAL_PATH="$(pwd)"
|
|
LOCAL_DIR=$(dirname "${LOCAL_PATH}")
|
|
ROOT_DIR="${PWD}/../../../"
|
|
export PLAT_FORM_STR=$(sh ${LOCAL_DIR}/../../build/get_PlatForm_str.sh)
|
|
|
|
cd build/linux/opengauss
|
|
sh -x build.sh -3rd "${ROOT_DIR}/output" -m Release -t cmake |