Score
0
Watch 3 Star 2 Fork 3

Gitee 极速下载 / ClauseC++

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/chatopera/clause
Clause 是帮助中小型企业快速而低成本地获得好用的语义理解服务的系统 spread retract

https://www.oschina.net/p/Clause

Clone or download
Doxyfile.sh 880 Bytes
Copy Edit Web IDE Raw Blame History
Chatbot authored 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

Comment ( 0 )

Sign in for post a comment