Blame docs/reference/gio/gresource.xml

Packit ae235b
<refentry id="gresource-tool" lang="en">
Packit ae235b
Packit ae235b
<refentryinfo>
Packit ae235b
  <title>gresource</title>
Packit ae235b
  <productname>GIO</productname>
Packit ae235b
  <authorgroup>
Packit ae235b
    <author>
Packit ae235b
      <contrib>Developer</contrib>
Packit ae235b
      <firstname>Matthias</firstname>
Packit ae235b
      <surname>Clasen</surname>
Packit ae235b
    </author>
Packit ae235b
  </authorgroup>
Packit ae235b
</refentryinfo>
Packit ae235b
Packit ae235b
<refmeta>
Packit ae235b
  <refentrytitle>gresource</refentrytitle>
Packit ae235b
  <manvolnum>1</manvolnum>
Packit ae235b
  <refmiscinfo class="manual">User Commands</refmiscinfo>
Packit ae235b
</refmeta>
Packit ae235b
Packit ae235b
<refnamediv>
Packit ae235b
  <refname>gresource</refname>
Packit ae235b
  <refpurpose>GResource tool</refpurpose>
Packit ae235b
</refnamediv>
Packit ae235b
Packit ae235b
<refsynopsisdiv>
Packit ae235b
  <cmdsynopsis>
Packit ae235b
    <command>gresource</command>
Packit ae235b
    <arg choice="opt">--section <replaceable>SECTION</replaceable></arg>
Packit ae235b
    <arg choice="plain">list</arg>
Packit ae235b
    <arg choice="plain"><replaceable>FILE</replaceable></arg>
Packit ae235b
    <arg choice="opt"><replaceable>PATH</replaceable></arg>
Packit ae235b
  </cmdsynopsis>
Packit ae235b
  <cmdsynopsis>
Packit ae235b
    <command>gresource</command>
Packit ae235b
    <arg choice="opt">--section <replaceable>SECTION</replaceable></arg>
Packit ae235b
    <arg choice="plain">details</arg>
Packit ae235b
    <arg choice="plain"><replaceable>FILE</replaceable></arg>
Packit ae235b
    <arg choice="opt"><replaceable>PATH</replaceable></arg>
Packit ae235b
  </cmdsynopsis>
Packit ae235b
  <cmdsynopsis>
Packit ae235b
    <command>gresource</command>
Packit ae235b
    <arg choice="opt">--section <replaceable>SECTION</replaceable></arg>
Packit ae235b
    <arg choice="plain">extract</arg>
Packit ae235b
    <arg choice="plain"><replaceable>FILE</replaceable></arg>
Packit ae235b
    <arg choice="plain"><replaceable>PATH</replaceable></arg>
Packit ae235b
  </cmdsynopsis>
Packit ae235b
  <cmdsynopsis>
Packit ae235b
    <command>gresource</command>
Packit ae235b
    <arg choice="plain">sections</arg>
Packit ae235b
    <arg choice="plain"><replaceable>FILE</replaceable></arg>
Packit ae235b
  </cmdsynopsis>
Packit ae235b
  <cmdsynopsis>
Packit ae235b
    <command>gresource</command>
Packit ae235b
    <arg choice="plain">help</arg>
Packit ae235b
    <arg choice="opt"><replaceable>COMMAND</replaceable></arg>
Packit ae235b
  </cmdsynopsis>
Packit ae235b
</refsynopsisdiv>
Packit ae235b
Packit ae235b
<refsect1><title>Description</title>
Packit ae235b
<para><command>gresource</command> offers a simple commandline
Packit ae235b
interface to <link linkend="GResource"><type>GResource</type></link>.
Packit ae235b
It lets you list and extract resources that have been compiled
Packit ae235b
into a resource file or included in an elf file (a binary or a
Packit ae235b
shared library).
Packit ae235b
</para>
Packit ae235b
<para>
Packit ae235b
The file to operate on is specified by the <replaceable>FILE</replaceable>
Packit ae235b
argument.
Packit ae235b
</para>
Packit ae235b
<para>
Packit ae235b
If an elf file includes multiple sections with resources, it is
Packit ae235b
possible to select which one to operate on with the
Packit ae235b
<arg choice="plain">--section</arg> option. Use the
Packit ae235b
<arg choice="plain">sections</arg> command to find available sections.
Packit ae235b
</para>
Packit ae235b
</refsect1>
Packit ae235b
Packit ae235b
<refsect1><title>Commands</title>
Packit ae235b
<variablelist>
Packit ae235b
Packit ae235b
<varlistentry>
Packit ae235b
<term><option>list</option></term>
Packit ae235b
<listitem><para>
Packit ae235b
Lists resources. If <replaceable>SECTION</replaceable> is given, only
Packit ae235b
list resources in this section. If <replaceable>PATH</replaceable> is
Packit ae235b
given, only list matching resources.
Packit ae235b
</para></listitem>
Packit ae235b
</varlistentry>
Packit ae235b
Packit ae235b
<varlistentry>
Packit ae235b
<term><option>details</option></term>
Packit ae235b
<listitem><para>
Packit ae235b
Lists resources with details. If <replaceable>SECTION</replaceable>
Packit ae235b
is given, only list resources in this section. If
Packit ae235b
<replaceable>PATH</replaceable> is given, only list matching resources.
Packit ae235b
Details include the section, size and compression of each resource.
Packit ae235b
</para></listitem>
Packit ae235b
</varlistentry>
Packit ae235b
Packit ae235b
<varlistentry>
Packit ae235b
<term><option>extract</option></term>
Packit ae235b
<listitem><para>
Packit ae235b
Extracts the resource named by <replaceable>PATH</replaceable> to stdout.
Packit ae235b
Note that resources may contain binary data.
Packit ae235b
</para></listitem>
Packit ae235b
</varlistentry>
Packit ae235b
Packit ae235b
<varlistentry>
Packit ae235b
<term><option>sections</option></term>
Packit ae235b
<listitem><para>
Packit ae235b
Lists sections containing resources. This is only interesting if
Packit ae235b
<replaceable>FILE</replaceable> is an elf file.
Packit ae235b
</para></listitem>
Packit ae235b
</varlistentry>
Packit ae235b
Packit ae235b
<varlistentry>
Packit ae235b
<term><option>help</option></term>
Packit ae235b
<listitem><para>
Packit ae235b
Prints help and exits.
Packit ae235b
</para></listitem>
Packit ae235b
</varlistentry>
Packit ae235b
Packit ae235b
</variablelist>
Packit ae235b
Packit ae235b
</refsect1>
Packit ae235b
</refentry>