[svn-commits] bkruse: branch group/appdocsxml r128335 - in /team/group/appdocsxml: ./ main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Jul 5 18:29:18 CDT 2008


Author: bkruse
Date: Sat Jul  5 18:29:17 2008
New Revision: 128335

URL: http://svn.digium.com/view/asterisk?view=rev&rev=128335
Log:
Updating the make documentation command, looks
sweet, and you can see where it dies (if it does)

Want to write a simple standalone app that checks
the validity of the generated XML file.

Updated the format warning

Modified:
    team/group/appdocsxml/Makefile
    team/group/appdocsxml/main/pbx.c

Modified: team/group/appdocsxml/Makefile
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/Makefile?view=diff&rev=128335&r1=128334&r2=128335
==============================================================================
--- team/group/appdocsxml/Makefile (original)
+++ team/group/appdocsxml/Makefile Sat Jul  5 18:29:17 2008
@@ -483,16 +483,17 @@
 	$(MAKE) -C sounds install
 
 documentation:
-	@echo "Building Documentation."
+	@echo -n "Building Documentation For: "
 	@echo "<?xml version="1.0" encoding="UTF-8"?>" > documentation.xml
 	@echo "<docs>" >> documentation.xml
 	@for x in $(MOD_SUBDIRS); do \
+		echo -n " $$x " ; \
 		for i in $$x/*.c; do \
 			$(AWK) -f build_tools/get_documentation $$i >> documentation.xml ; \
 		done ; \
 	done
 	@echo "</docs>" >> documentation.xml
-	@echo "Done."
+	@echo -e "\ndocumentation.xml --> $(ASTVARLIBDIR)/documentation.xml"
 
 update: 
 	@if [ -d .svn ]; then \

Modified: team/group/appdocsxml/main/pbx.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/main/pbx.c?view=diff&rev=128335&r1=128334&r2=128335
==============================================================================
--- team/group/appdocsxml/main/pbx.c (original)
+++ team/group/appdocsxml/main/pbx.c Sat Jul  5 18:29:17 2008
@@ -8180,7 +8180,7 @@
 	for(var = ast_variable_browse(cfg, "options"); var; var = var->next) {
 		if(!strcasecmp(var->name, "documentation_language")) {
 			if(!ast_strlen_zero(var->value)) {
-				snprintf(documentation_language, sizeof(documentation_language), var->value);
+				snprintf(documentation_language, sizeof(documentation_language), "%s", var->value);
 			}
 		}	
 	}




More information about the svn-commits mailing list