mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Add docs for gresource
This commit is contained in:
parent
716cf35585
commit
d994c38aba
@ -112,6 +112,7 @@ content_files = \
|
|||||||
gio-querymodules.xml \
|
gio-querymodules.xml \
|
||||||
glib-compile-schemas.xml\
|
glib-compile-schemas.xml\
|
||||||
gsettings.xml \
|
gsettings.xml \
|
||||||
|
gresource.xml \
|
||||||
gdbus.xml \
|
gdbus.xml \
|
||||||
gdbus-codegen.xml \
|
gdbus-codegen.xml \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
@ -142,6 +143,7 @@ man_MANS = \
|
|||||||
glib-compile-schemas.1 \
|
glib-compile-schemas.1 \
|
||||||
glib-compile-resources.1 \
|
glib-compile-resources.1 \
|
||||||
gsettings.1 \
|
gsettings.1 \
|
||||||
|
gresource.1 \
|
||||||
gdbus.1 \
|
gdbus.1 \
|
||||||
gdbus-codegen.1
|
gdbus-codegen.1
|
||||||
|
|
||||||
|
@ -226,6 +226,7 @@
|
|||||||
<xi:include href="glib-compile-resources.xml"/>
|
<xi:include href="glib-compile-resources.xml"/>
|
||||||
<xi:include href="gdbus.xml"/>
|
<xi:include href="gdbus.xml"/>
|
||||||
<xi:include href="xml/gdbus-codegen.xml"/>
|
<xi:include href="xml/gdbus-codegen.xml"/>
|
||||||
|
<xi:include href="gresource.xml"/>
|
||||||
</chapter>
|
</chapter>
|
||||||
</part>
|
</part>
|
||||||
|
|
||||||
|
116
docs/reference/gio/gresource.xml
Normal file
116
docs/reference/gio/gresource.xml
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
<refentry id="gresource-tool" lang="en">
|
||||||
|
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle>gresource</refentrytitle>
|
||||||
|
<manvolnum>1</manvolnum>
|
||||||
|
<refmiscinfo class="manual">User Commands</refmiscinfo>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname>gresource</refname>
|
||||||
|
<refpurpose>GResource tool</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>gresource</command>
|
||||||
|
<arg choice="opt">--section <replaceable>SECTION</replaceable></arg>
|
||||||
|
<arg choice="plain">list</arg>
|
||||||
|
<arg choice="plain"><replaceable>FILE</replaceable></arg>
|
||||||
|
<arg choice="opt"><replaceable>PATH</replaceable></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>gresource</command>
|
||||||
|
<arg choice="opt">--section SECTION</arg>
|
||||||
|
<arg choice="plain">details</arg>
|
||||||
|
<arg choice="plain"><replaceable>FILE</replaceable></arg>
|
||||||
|
<arg choice="opt"><replaceable>PATH</replaceable></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>gresource</command>
|
||||||
|
<arg choice="opt">--section SECTION</arg>
|
||||||
|
<arg choice="plain">extract</arg>
|
||||||
|
<arg choice="plain"><replaceable>FILE</replaceable></arg>
|
||||||
|
<arg choice="plain"><replaceable>PATH</replaceable></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>gresource</command>
|
||||||
|
<arg choice="plain">sections</arg>
|
||||||
|
<arg choice="plain"><replaceable>FILE</replaceable></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>gresource</command>
|
||||||
|
<arg choice="plain">help</arg>
|
||||||
|
<arg choice="opt"><replaceable>COMMAND</replaceable></arg>
|
||||||
|
</cmdsynopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1><title>Description</title>
|
||||||
|
<para><command>gresource</command> offers a simple commandline
|
||||||
|
interface to <link linkend="GResource"><type>GResource</type></link>.
|
||||||
|
It lets you list and extract resources that have been compiled
|
||||||
|
into a resource file or included in an elf file (a binary or a
|
||||||
|
shared library).
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
The file to operate on is specified by the <replaceable>FILE</replaceable>
|
||||||
|
argument.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
If an elf file includes multiple sections with resources, it is
|
||||||
|
possible to select which one to operate on with the
|
||||||
|
<arg choice="plain">--section</arg> option. Use the
|
||||||
|
<arg choice="plain">sections</arg> command to find available sections.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<refsect2><title>Commands</title>
|
||||||
|
<variablelist>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>list</option></term>
|
||||||
|
<listitem><para>
|
||||||
|
Lists resources. If <replaceable>SECTION</replaceable> is given, only
|
||||||
|
list resourcs in this section. If <replaceable>PATH</replaceable> is
|
||||||
|
given, only list matching resources.
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>details</option></term>
|
||||||
|
<listitem><para>
|
||||||
|
Lists resources with details. If <replaceable>SECTION</replaceable>
|
||||||
|
is given, only list resources in this section. If
|
||||||
|
<replaceable>PATH</replaceable> is given, only list matching resources.
|
||||||
|
Details include the section, size and compression of each resource.
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>extract</option></term>
|
||||||
|
<listitem><para>
|
||||||
|
Extracts the resource named by <replaceable>PATH</replaceable> to stdout.
|
||||||
|
Note that resources may contain binary data.
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>sections</option></term>
|
||||||
|
<listitem><para>
|
||||||
|
Lists sections containing resources. This is only interesting if
|
||||||
|
<replaceable>FILE</replaceable> is an elf file.
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>help</option></term>
|
||||||
|
<listitem><para>
|
||||||
|
Prints help and exits.
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
</variablelist>
|
||||||
|
</refsect2>
|
||||||
|
|
||||||
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user