Skip to content

Commit d60c54a

Browse files
authored
Added option to set input for doxygen (espressif#78)
1 parent cfb70df commit d60c54a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: doxy_gen_and_deploy.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,14 @@ fi
122122
sed -i "s;^HTML_OUTPUT .*;HTML_OUTPUT = code_docs/${REPO_NAME}/html;" ${DOXYFILE}
123123
cd $BUILD_DIR
124124

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
127133

128134
# if any warnings, bail!
129135
if [ -s foo.txt ]; then exit 1 ; fi

0 commit comments

Comments
 (0)