[Patch] AM_GCONF_SOURCE docs



Attached is a small explanation on how to use the new macro to install
schemas. (a patch to gconf.sgml)
My english really sucks, but there are not too many words there, so I
hope it's ok.

Marco
? patch
? GConf-1.0.3.tar.gz
? GConf-1.0.4.tar.gz
? doc/gconf/html
? doc/gconf/sgml
Index: gconf.m4.in
===================================================================
RCS file: /cvs/gnome/gconf/gconf.m4.in,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 gconf.m4.in
--- gconf.m4.in	2001/08/07 19:13:43	1.1.2.1
+++ gconf.m4.in	2001/08/11 16:48:32
@@ -65,7 +65,7 @@
   rm -f conf.gconftest
 ])
 
-dnl AM_PATH_GCONF
+dnl AM_GCONF_SOURCE
 dnl Define GCONF_SCHEMA_CONFIG_SOURCE
 dnl
 AC_DEFUN(AM_GCONF_SOURCE,
Index: doc/gconf/gconf.sgml
===================================================================
RCS file: /cvs/gnome/gconf/doc/gconf/gconf.sgml,v
retrieving revision 1.26
diff -u -r1.26 gconf.sgml
--- doc/gconf/gconf.sgml	2000/09/13 17:49:41	1.26
+++ doc/gconf/gconf.sgml	2001/08/11 16:48:37
@@ -1257,9 +1257,31 @@
       </para>
 
       <para>
-        FIXME give snippets of configure.in and Makefile.am
+	The <symbol>AM_GCONF_SOURCE</symbol> 
+	macro will get the default location to install
+	the schema. It will also add a 
+	<literal>--enable-gconf-source</literal>
+	option and it will look in 
+	<filename>$(sysconfdir)/gconf/schema-install-source</filename> 
+	for a path.
+	The <symbol>GCONF_SCHEMA_CONFIG_SOURCE</symbol> variable 
+	will be defined.
       </para>
-
+      <para>
+	To get schemas installed properly add the macro to 
+	<filename>configure.in</filename>
+	<programlisting>
+	  AM_GCONF_SOURCE
+	</programlisting>  
+      </para>
+      <para>
+	And put something like this in <filename>Makefile.am</filename>
+	<programlisting>
+	  install-schemas:
+	      GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
+	      gconftool --makefile-install-rule my.schemas
+	</programlisting>
+      </para>
     </sect1>
 
     <sect1> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]