forked from Rizer/libdeep
-
Notifications
You must be signed in to change notification settings - Fork 1
/
generatedocs.sh
executable file
·31 lines (29 loc) · 1.16 KB
/
generatedocs.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
25
26
27
28
29
30
31
#!/bin/bash
CONFIG=Doxyfile
TEMPCONFIG=.tempfile
if [ ! -d "docs" ]; then
mkdir docs
fi
cd docs
rm $CONFIG
doxygen -g
sed 's/My Project/libdeep/g' $CONFIG > $TEMPCONFIG
cp $TEMPCONFIG $CONFIG
sed 's@PROJECT_LOGO.*@PROJECT_LOGO = ../img/logo55.png@g' $CONFIG > $TEMPCONFIG
cp $TEMPCONFIG $CONFIG
sed 's@INPUT .*@INPUT = ../src ../examples/concreteslump ../examples/facerec ../examples/iris ../examples/wine ../examples/xor ../examples/facerec_conv ../examples/cancer_classification@g' $CONFIG > $TEMPCONFIG
cp $TEMPCONFIG $CONFIG
sed 's/SOURCE_BROWSER.*/SOURCE_BROWSER = YES/g' $CONFIG > $TEMPCONFIG
cp $TEMPCONFIG $CONFIG
sed 's/INLINE_SOURCES.*/INLINE_SOURCES = YES/g' $CONFIG > $TEMPCONFIG
cp $TEMPCONFIG $CONFIG
sed 's/OPTIMIZE_OUTPUT_FOR_C.*/OPTIMIZE_OUTPUT_FOR_C = YES/g' $CONFIG > $TEMPCONFIG
cp $TEMPCONFIG $CONFIG
sed 's/EXTRACT_ALL.*/EXTRACT_ALL = YES/g' $CONFIG > $TEMPCONFIG
cp $TEMPCONFIG $CONFIG
sed 's/EXTRACT_STATIC.*/EXTRACT_STATIC = YES/g' $CONFIG > $TEMPCONFIG
cp $TEMPCONFIG $CONFIG
sed 's/TIMESTAMP.*/TIMESTAMP = NO/g' $CONFIG > $TEMPCONFIG
cp $TEMPCONFIG $CONFIG
rm $TEMPCONFIG
doxygen $CONFIG