forked from LibreCAD/LibreCAD_3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doxygen.sh
executable file
·24 lines (21 loc) · 925 Bytes
/
doxygen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
OUTPUT_DIRECTORY=doxygen/doc
#doxygen is main module
MODULES=( lckernel persistence lcviewernoqt lcadluascript lcUI luacmdinterface unittest )
#here order matters, if cyclic 2 run
#This file generate Doxygen documentation
#Maybe we should execute the following commands with CMake.
createDirectory(){
if [ ! -r "$1" ]; then
echo "Creating directory $1"
mkdir "$1"
fi
}
createDirectory $OUTPUT_DIRECTORY
for module in ${MODULES[@]}
do
createDirectory $OUTPUT_DIRECTORY/$module
(cat $OUTPUT_DIRECTORY/../librecad.dox; echo "INPUT=$module"; echo "OUTPUT_DIRECTORY=$OUTPUT_DIRECTORY/$module"; echo "PROJECT_BRIEF=LibreCAD_3" ; echo "PROJECT_NAME=$module" ; cat doxygen/$module.cfg) | doxygen -
done
createDirectory $OUTPUT_DIRECTORY/main
(cat $OUTPUT_DIRECTORY/../librecad.dox; echo "INPUT=doxygen"; echo "OUTPUT_DIRECTORY=$OUTPUT_DIRECTORY/main"; cat doxygen/main.cfg) | doxygen -