402 Star 2.1K Fork 1.1K

GVPApolloAuto/apollo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update_dylib.sh 916 Bytes
一键复制 编辑 原始数据 按行查看 历史
lykling 提交于 9个月前 . merge: merge preview features
#/bin/bash
APOLLO_LIB_PATH="${APOLLO_ENV_ROOT}/opt/apollo/neo/lib"
LD_CACHE="${APOLLO_ENV_ROOT}/opt/apollo/neo/ld.cache"
readdir() {
for file in $(ls -r $1); do
if [ -d $1/$file ]; then
echo "$1/$file" >> ${APOLLO_ENV_ROOT}/etc/ld.so.conf.d/apollo.conf
pushd $1/$file > /dev/null
readdir $1"/"$file
popd > /dev/null
fi
done
}
if [ ! -e ${LD_CACHE} ]; then
touch ${LD_CACHE}
chmod a+w ${LD_CACHE}
fi
hash_val=$(tree ${APOLLO_LIB_PATH} | sha256sum | awk '{print $1}')
if [ ! "${hash_val}" = "$(cat ${LD_CACHE})" ]; then
mkdir -p ${APOLLO_ENV_ROOT}/etc/ld.so.conf.d
echo "${hash_val}" > ${LD_CACHE}
touch ${APOLLO_ENV_ROOT}/etc/ld.so.conf.d/apollo.conf
chmod a+w ${APOLLO_ENV_ROOT}/etc/ld.so.conf.d/apollo.conf
echo "" > ${APOLLO_ENV_ROOT}/etc/ld.so.conf.d/apollo.conf
readdir $APOLLO_LIB_PATH
fi
ldconfig -C ${APOLLO_ENV_ROOT}/etc/ld.so.cache 2>&1 > /dev/null
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ApolloAuto/apollo.git
git@gitee.com:ApolloAuto/apollo.git
ApolloAuto
apollo
apollo
master

搜索帮助