1 Star 0 Fork 1

fendou8/repo_mirror_push

forked from chenq/repo_mirror_push 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 788 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenq 提交于 2025-03-11 11:00 +08:00 . 添加repo_status
#!/bin/bash
BUILD_CLEAN=false
while getopts "D" arg
do
case $arg in
D)
echo "will build with clean"
BUILD_CLEAN=true
;;
?)
;;
esac
done
mkdir -p output
cd output
mkdir -p build
cd build
if [ "$BUILD_CLEAN" = true ] ; then
echo "start clean"
rm -rf *
fi
cmake ../..
make -j8
cd ..
mkdir -p bin
cd bin
cp ../build/repo_mirror_push .
cp ../../depend/git_pull.sh .
cp ../../depend/git_push.sh .
cp ../../depend/git_status.sh .
cp ../../depend/mirror_pull.sh .
cp ../../depend/mirror_push.sh .
FILE="setting.ini"
if [ ! -f "$FILE" ]; then
cp ../../depend/$FILE .
fi
chmod +x repo_mirror_push
chmod +x git_pull.sh
chmod +x git_push.sh
chmod +x git_status.sh
chmod +x mirror_pull.sh
chmod +x mirror_push.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/fendou8/repo_mirror_push.git
git@gitee.com:fendou8/repo_mirror_push.git
fendou8
repo_mirror_push
repo_mirror_push
master

搜索帮助