1 Star 0 Fork 34

邓晟/clause

forked from Chatopera/clause 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Doxyfile.sh 880 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chatbot 提交于 2019-09-05 11:18 . #1 commit previous codes
#! /bin/bash
###########################################
#
###########################################
# constants
baseDir=$(cd `dirname "$0"`;pwd)
TARGET=$baseDir/docs
TMPDIR=$baseDir/tmp
# functions
# main
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
if [ ! -d $TMPDIR ]; then
mkdir $TMPDIR
fi
if [ ! -d $baseDir/docs ]; then
mkdir $baseDir/docs
else
rm -rf $baseDir/docs/*
fi
if [ -d $baseDir/tmp/doxygen_out ]; then
rm -rf $baseDir/tmp/doxygen_out
fi
cd $baseDir
echo "Generating docs ..."
set -x
doxygen
if [ -d $baseDir/tmp/doxygen_out/html ]; then
cd $baseDir/tmp/doxygen_out/html
tar cf - .|(cd $TARGET; tar xf -)
cp $baseDir/var/assets/doxygen.index.html $baseDir/docs/index.html
cp -rf $baseDir/var/assets/js $baseDir/docs
echo "built docs in" $TARGET
else
echo "Docs not generated ."
exit 1
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/shawn1979/clause.git
git@gitee.com:shawn1979/clause.git
shawn1979
clause
clause
osc

搜索帮助