#!/bin/bash # ************************************************************************* # Copyright: (c) Huawei Technologies Co., Ltd. 2022. All rights reserved # # description: the script that build DCF in component # date: 2022-03-01 # version: 3.0.0 # history: # # ************************************************************************* # Clone DCF code to local dir DCF_REPO=https://gitee.com/opengauss/DCF.git DCF_BRANCH=master echo "clone dcf code" if [ -d DCF ]; then rm -rf DCF fi git clone ${DCF_REPO} -b ${DCF_BRANCH} DCF cd DCF 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