make_xml_documentation: Really collect LOCAL_MOD_SUBDIRS documentation.

Although `make_xml_documentation`'s `print_dependencies` command was
corrected by the previous fix (#461) for #142, the `create_xml` was
not properly handling `LOCAL_MOD_SUBDIRS` XML documentation.
pull/493/head
Sean Bright 1 year ago committed by asterisk-org-access-app[bot]
parent d1fb397cfc
commit 44a5b99cdd

@ -135,12 +135,16 @@ if [ "${for_wiki}" -eq "1" ] || [ "${validate}" -eq "1" ]; then
fi
fi
make_absolute() {
case "$1" in
/*) echo "$1" ;;
*) echo "$source_tree/$1" ;;
esac
}
if [ "${command}" = "print_dependencies" ] ; then
for subdir in ${mod_subdirs} ; do
case "$subdir" in
/*) subpath="$subdir" ;;
*) subpath="$source_tree/$subdir" ;;
esac
subpath=$(make_absolute "$subdir")
${FIND} "${subpath}" \( -name '*.c' -o -name '*.cc' -o -name '*.xml' \) \
-exec ${GREP} -l -E '(language="en_US"|appdocsxml.dtd)' '{}' \;
done
@ -188,7 +192,7 @@ printf "Building Documentation For: "
for subdir in ${mod_subdirs} ; do
printf "%s " "${subdir}"
subdir_path="${source_tree}/${subdir}"
subdir_path=$(make_absolute "$subdir")
for i in $(${FIND} "${subdir_path}" -name '*.c' -or -name '*.cc'); do
if [ "${with_moduleinfo}" -eq "1" ] ; then
MODULEINFO=$(${AWK} -f "${source_tree}/build_tools/get_moduleinfo" "${i}")

Loading…
Cancel
Save