File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 122
122
sed -i " s;^HTML_OUTPUT .*;HTML_OUTPUT = code_docs/${REPO_NAME} /html;" ${DOXYFILE}
123
123
cd $BUILD_DIR
124
124
125
- # Print out doxygen warnings in red
126
- ${BUILD_DIR} /doxygen $DOXYFILE 2>&1 | tee foo.txt > >( while read line; do echo -e " \e[01;31m$line \e[0m" >&2 ; done)
125
+ if [ ! -z $1 ]
126
+ then
127
+ # Print out doxygen warnings in red, use specified path (for when everything is in src)
128
+ ( cat $DOXYFILE ; echo " INPUT=${BUILD_DIR} /$1 " ) | ${BUILD_DIR} /doxygen - 2>&1 | tee foo.txt > >( while read line; do echo -e " \e[01;31m$line \e[0m" >&2 ; done)
129
+ else
130
+ # Print out doxygen warnings in red, use default path
131
+ ${BUILD_DIR} /doxygen $DOXYFILE 2>&1 | tee foo.txt > >( while read line; do echo -e " \e[01;31m$line \e[0m" >&2 ; done)
132
+ fi
127
133
128
134
# if any warnings, bail!
129
135
if [ -s foo.txt ]; then exit 1 ; fi
You can’t perform that action at this time.
0 commit comments