mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +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
This commit is contained in:
		
				
					committed by
					
						![asterisk-org-access-app[bot]](/avatar/58a64b62d62d5b23df7bc832f016f9db?size=40) asterisk-org-access-app[bot]
						asterisk-org-access-app[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							3026ac08ab
						
					
				
				
					commit
					4f52ed660d
				
			| @@ -137,10 +137,12 @@ fi | ||||
|  | ||||
| if [ "${command}" = "print_dependencies" ] ; then | ||||
| 	for subdir in ${mod_subdirs} ; do | ||||
| 		subpath="${source_tree}/${subdir}" | ||||
| 		# We WANT word splitting in the following line. | ||||
| 		# shellcheck disable=SC2046 | ||||
| 		${GREP} -l -E '(language="en_US"|appdocsxml.dtd)' $(${FIND} "${subpath}" -name '*.c' -or -name '*.cc' -or -name '*.xml') || : | ||||
| 		case "$subdir" in | ||||
| 			/*) subpath="$subdir" ;; | ||||
| 			*)  subpath="$source_tree/$subdir" ;; | ||||
| 		esac | ||||
| 		${FIND} "${subpath}" \( -name '*.c' -o -name '*.cc' -o -name '*.xml' \) \ | ||||
| 			-exec ${GREP} -l -E '(language="en_US"|appdocsxml.dtd)' '{}' \; | ||||
| 	done | ||||
| 	exit | ||||
| fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user