代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/sofa 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
####
# Determine the location of the script.
# This algorithm also works when sourcing the script
# or when some directories are symbolic links.
SCRIPT_PATH="${BASH_SOURCE[0]}";
if([ -h "${SCRIPT_PATH}" ]) then
while([ -h "${SCRIPT_PATH}" ]) do SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done
fi
pushd . > /dev/null
cd `dirname ${SCRIPT_PATH}` > /dev/null
SCRIPT_PATH=`pwd`;
popd > /dev/null
####
PLATFORM=$(uname)
if [ "$PLATFORM" = "Darwin" ]; then
PLATFORM=macx
else
PLATFORM=linux
fi
export SRC_DIR=$SCRIPT_PATH
# Add the first param (if it exist) to SCRIPT_PATH
# In general $1 is the cmake build directory
# readlink Remove unnecessary slashes (if $1 is empty)
if [ "$PLATFORM" = "macx" ]; then
# quick-and-dirty fix, since readlink -m is not available on MacOS
export BUILD_DIR=$PWD
else
export BUILD_DIR=$(readlink -m $PWD"/"$1"/")
fi
export PATH=$BUILD_DIR/bin:$PATH
export LD_LIBRARY_PATH=$BUILD_DIR/lib:$SRC_DIR/lib/$PLATFORM:$LD_LIBRARY_PATH
if [ "$PLATFORM" = "macx" ]; then
export DYLD_LIBRARY_PATH=$BUILD_DIR/lib:$SRC_DIR/lib/$PLATFORM:$DYLD_LIBRARY_PATH
fi
export LIBRARY_PATH=$BUILD_DIR/lib:$SRC_DIR/lib/$PLATFORM:$LIBRARY_PATH
export CPATH=$SRC_DIR/include:$CPATH
if [ "$BUILD_DIR" != "$SRC_DIR" ]; then
export SOFA_DATA_PATH=$SRC_DIR/examples:$SRC_DIR/share:$SOFA_DATA_PATH
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。