mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
make_xml_documentation: Properly handle absolute LOCAL_MOD_SUBDIRS.
If LOCAL_MOD_SUBDIRS contains absolute paths, do not prefix them with
the path to Asterisk's source tree.
Fixes #142
(cherry picked from commit e196ccb7c2
)
This commit is contained in:
committed by
Asterisk Development Team
parent
5288c25dc1
commit
4070a5f038
@@ -137,10 +137,12 @@ fi
|
|||||||
|
|
||||||
if [ "${command}" = "print_dependencies" ] ; then
|
if [ "${command}" = "print_dependencies" ] ; then
|
||||||
for subdir in ${mod_subdirs} ; do
|
for subdir in ${mod_subdirs} ; do
|
||||||
subpath="${source_tree}/${subdir}"
|
case "$subdir" in
|
||||||
# We WANT word splitting in the following line.
|
/*) subpath="$subdir" ;;
|
||||||
# shellcheck disable=SC2046
|
*) subpath="$source_tree/$subdir" ;;
|
||||||
${GREP} -l -E '(language="en_US"|appdocsxml.dtd)' $(${FIND} "${subpath}" -name '*.c' -or -name '*.cc' -or -name '*.xml') || :
|
esac
|
||||||
|
${FIND} "${subpath}" \( -name '*.c' -o -name '*.cc' -o -name '*.xml' \) \
|
||||||
|
-exec ${GREP} -l -E '(language="en_US"|appdocsxml.dtd)' '{}' \;
|
||||||
done
|
done
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user