#!bin/bash
target_path=$(pwd)
echo "target path:  ${target_path}/prebuild"

if [ ! -d "${target_path}/prebuild" ]; then
        echo "cloning prebuild repository to ${target_path}"
        cd ${target_path}
        git clone https://gitee.com/mindspore/prebuild.git
else
        echo "found prebuild in ${target_path}, attempting to update ..."
        cd ${target_path}/prebuild
        git pull
fi
cd -
export D_LINK_PATH=${target_path}/prebuild/lib64

