mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-01-03 02:28:53 +00:00
docs: Don't overcomplicate things with the major version in docs
Just hard code '1' instead of using variable substitution. https://bugzilla.gnome.org/show_bug.cgi?id=751400
This commit is contained in:
parent
5f6126da7b
commit
4c08fe2933
@ -275,7 +275,6 @@ AC_CONFIG_FILES([
|
|||||||
Makefile
|
Makefile
|
||||||
docs/reference/libsecret/Makefile
|
docs/reference/libsecret/Makefile
|
||||||
docs/reference/libsecret/version.xml
|
docs/reference/libsecret/version.xml
|
||||||
docs/reference/libsecret/version-major.xml
|
|
||||||
po/Makefile.in
|
po/Makefile.in
|
||||||
po/Makefile
|
po/Makefile
|
||||||
libsecret/libsecret.pc
|
libsecret/libsecret.pc
|
||||||
|
@ -97,8 +97,7 @@ include $(top_srcdir)/gtk-doc.make
|
|||||||
# Other files to distribute
|
# Other files to distribute
|
||||||
# e.g. EXTRA_DIST += version.xml.in
|
# e.g. EXTRA_DIST += version.xml.in
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
version.xml.in \
|
version.xml.in
|
||||||
version-major.xml.in
|
|
||||||
|
|
||||||
# Files not to distribute
|
# Files not to distribute
|
||||||
# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
|
# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
||||||
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
|
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
|
||||||
<!ENTITY major SYSTEM "version-major.xml">
|
|
||||||
]>
|
]>
|
||||||
<part id="using">
|
<part id="using">
|
||||||
<title>Using libsecret in builds or scripts</title>
|
<title>Using libsecret in builds or scripts</title>
|
||||||
@ -11,11 +10,11 @@
|
|||||||
|
|
||||||
<para>Like other GNOME libraries, <application>libsecret</application> uses
|
<para>Like other GNOME libraries, <application>libsecret</application> uses
|
||||||
<application>pkg-config</application> to provide compiler options. The package
|
<application>pkg-config</application> to provide compiler options. The package
|
||||||
name is "<literal>libsecret-&major;</literal>". So in your
|
name is "<literal>libsecret-1</literal>". So in your
|
||||||
<literal>configure.ac</literal> script,you might specify something like:</para>
|
<literal>configure.ac</literal> script,you might specify something like:</para>
|
||||||
|
|
||||||
<informalexample><programlisting>
|
<informalexample><programlisting>
|
||||||
PKG_CHECK_MODULES(LIBSECRET, [libsecret-&major; >= 1.0])
|
PKG_CHECK_MODULES(LIBSECRET, [libsecret-1 >= 1.0])
|
||||||
AC_SUBST(LIBSECRET_CFLAGS)
|
AC_SUBST(LIBSECRET_CFLAGS)
|
||||||
AC_SUBST(LIBSECRET_LIBS)
|
AC_SUBST(LIBSECRET_LIBS)
|
||||||
</programlisting></informalexample>
|
</programlisting></informalexample>
|
||||||
@ -88,13 +87,13 @@ schema = Secret.Schema.new("org.mock.Schema",
|
|||||||
<title>Vala: Compiling with libsecret</title>
|
<title>Vala: Compiling with libsecret</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The package name is "<literal>libsecret-&major;</literal>". You can use it like
|
The package name is "<literal>libsecret-1</literal>". You can use it like
|
||||||
this in your <literal>Makefile.am</literal> file:
|
this in your <literal>Makefile.am</literal> file:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<informalexample><programlisting>
|
<informalexample><programlisting>
|
||||||
AM_VALAFLAGS = \
|
AM_VALAFLAGS = \
|
||||||
--pkg=libsecret-&major;
|
--pkg=libsecret-1
|
||||||
</programlisting></informalexample>
|
</programlisting></informalexample>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
Loading…
Reference in New Issue
Block a user