1 Star 0 Fork 0

GitMirror / gphoto2pp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
update_doc.sh 1017 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
# Updates the doxygen documentation, and copies it into the appropriate place
# in the gh-pages branch.
set -e
if [ -d "./build/debug/" ]; then
echo "Debug build found, making documentation..."
cd ./build/debug
make doc
cd ../../
tempdir=`mktemp -d`
cp -r ./doxygen/* ${tempdir}
if [ -d "./gh-pages/" ]; then
echo "gh-pages already exists, removing it"
rm -rf -- gh-pages/
fi
mkdir gh-pages
cd gh-pages
git init
git remote add -t gh-pages -f origin https://github.com/maldworth/gphoto2pp.git
git checkout gh-pages
cp -rf ${tempdir}/* ./
rm -rf -- ${tempdir}
echo "###############"
echo "Successfully updated doxygen in gh-pages branch. you will need to run 'git status' and see what changes are there"
echo "depending on the changes, you might have to add or remove files before commiting to staging"
echo "the easiest command is to use 'git add -A', then you commit changes and push to the remote repo"
else
echo "Must build in Debug mode in order to generate docs"
fi
C++
1
https://gitee.com/asxuexi_android/gphoto2pp.git
git@gitee.com:asxuexi_android/gphoto2pp.git
asxuexi_android
gphoto2pp
gphoto2pp
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891