1 Star 0 Fork 0

shitou/KTX-Software

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
runDoxygen 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
msc- 提交于 2018-05-12 16:41 +08:00 . Reorganize document hierarchy and fix package doc.
#! /bin/bash
# -*- tab-width: 4; -*-
# vi: set sw=2 ts=4:textwidth=70
# Run doxygen, creating any requested output directory first.
# This script is needed because (a) Doxygen refuses to create
# more than one level of directory and (b) there is no way to
# chain commands together in GYP actions. Even were (a) fixed,
# we'd still need this to set the timestamp file.
# Doxygen must be run in the top-level project directory
# so that ancestors of that directory will be removed
# from paths displayed in the documentation. That is also
# the directory where the .doxy and .gyp files are stored.
function usage() {
echo "Usage: $0 [[-o <output>] ...] [-t <timestampfile>] <doxyFile>"
exit 1
}
doxygen=$(which doxygen)
if [ $? != 0 ]
then
if [ `uname` == "Darwin" ]
then
# It seems to be inpossible to modify the $PATH variable used for builds
# run from the Xcode GUI and difficult when running from the command line.
# Furthermore actions in Xcode are run by 'sh'
# which does not read startup (.bash_profile etc) files. Check for
# Doxygen in the standard installation locations including those of
# MacPorts and Homebrew.
for i in /Applications/Doxygen.app/Contents/Resources/doxygen \
/usr/local/bin/doxygen \
/opt/local/bin/doxygen
do
if [ -e $i ]
then
doxygen=$i
break
fi
done
if [ -z "$doxygen" ]
then
echo "Doxygen not found in Applications, /opt/local/bin or /usr/local/bin"
fi
fi
if [ -z "$doxygen" ]
then
echo "Doxygen not found anywhere on $PATH"
exit 1
fi
fi
# XXX Use shell builtin getopts instead....
args=$(getopt o:t: $*)
if [ $? != 0 ]
then
usage
fi
timestamp=
set -- $args
for i
do
case "$i" in
-o) mkdir -p $2 ; if [ $? != 0 ]; then exit 1; fi ;
shift; shift ;;
-t) timestamp=$2 ; shift ;
shift ;;
--) shift; break;;
esac
done
if [ $# != 1 ]
then
usage
fi
"$doxygen" $1
if [ $? != 0 ]
then
exit 2
fi
if [ -n "$timestamp" ]
then
touch "$timestamp"
if [ $? != 0 ]
then
exit 3
fi
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/JengFu/KTX-Software.git
git@gitee.com:JengFu/KTX-Software.git
JengFu
KTX-Software
KTX-Software
master

搜索帮助