代码拉取完成,页面将自动刷新
#!/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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。