Revert "Get api docs building"
authorKristian H?gsberg <krh@redhat.com>
Sat Jun 28 18:33:15 2008 -0400 (2008-06-28)
changeset 294d7ecddf38c3d
parent 293 608b2e7013f8
child 298 ddc35bb593ef
Revert "Get api docs building"

Pass --enable-gtk-doc to ./configure to build API docs. Add a
status print-out at the end of configure.ac to show whether gtk-doc
was enabled.

This reverts commit 436386fb11ee56e50c2c76c496b1f6c39530e170.
configure.ac
docs/Makefile.am
src/main.c
     1.1 --- a/configure.ac	Thu Jun 26 20:49:11 2008 -0400
     1.2 +++ b/configure.ac	Sat Jun 28 18:33:15 2008 -0400
     1.3 @@ -219,5 +219,5 @@
     1.4          cflags:                     ${CFLAGS}
     1.5          Maintainer mode:            ${USE_MAINTAINER_MODE}
     1.6          Building verbose mode:      ${enable_verbose_mode}
     1.7 +        Building gtk-doc:           ${enable_gtk_doc}
     1.8  "
     1.9 -
     2.1 --- a/docs/Makefile.am	Thu Jun 26 20:49:11 2008 -0400
     2.2 +++ b/docs/Makefile.am	Sat Jun 28 18:33:15 2008 -0400
     2.3 @@ -20,7 +20,11 @@
     2.4  # Extra options to supply to gtkdoc-mktmpl
     2.5  MKTMPL_OPTIONS=
     2.6  
     2.7 +if ENABLE_GTK_DOC
     2.8  include $(top_srcdir)/gtk-doc.make
     2.9 +else
    2.10 +EXTRA_DIST =
    2.11 +endif
    2.12  
    2.13  # Version information for marking the documentation
    2.14  EXTRA_DIST += version.xml.in
     3.1 --- a/src/main.c	Thu Jun 26 20:49:11 2008 -0400
     3.2 +++ b/src/main.c	Sat Jun 28 18:33:15 2008 -0400
     3.3 @@ -877,7 +877,7 @@
     3.4  		return 1;
     3.5  	}
     3.6  
     3.7 -	sprintf(pattern, "*%s*", argv[0]);
     3.8 +	snprintf(pattern, sizeof pattern, "*%s*", argv[0]);
     3.9  
    3.10  	set = razor_set_open(repo_filename);
    3.11  	if (set == NULL)