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