1 <refentry id="gresource-tool" lang="en">
4 <title>gresource</title>
5 <productname>GIO</productname>
8 <contrib>Developer</contrib>
9 <firstname>Matthias</firstname>
10 <surname>Clasen</surname>
16 <refentrytitle>gresource</refentrytitle>
17 <manvolnum>1</manvolnum>
18 <refmiscinfo class="manual">User Commands</refmiscinfo>
22 <refname>gresource</refname>
23 <refpurpose>GResource tool</refpurpose>
28 <command>gresource</command>
29 <arg choice="opt">--section <replaceable>SECTION</replaceable></arg>
30 <arg choice="plain">list</arg>
31 <arg choice="plain"><replaceable>FILE</replaceable></arg>
32 <arg choice="opt"><replaceable>PATH</replaceable></arg>
35 <command>gresource</command>
36 <arg choice="opt">--section <replaceable>SECTION</replaceable></arg>
37 <arg choice="plain">details</arg>
38 <arg choice="plain"><replaceable>FILE</replaceable></arg>
39 <arg choice="opt"><replaceable>PATH</replaceable></arg>
42 <command>gresource</command>
43 <arg choice="opt">--section <replaceable>SECTION</replaceable></arg>
44 <arg choice="plain">extract</arg>
45 <arg choice="plain"><replaceable>FILE</replaceable></arg>
46 <arg choice="plain"><replaceable>PATH</replaceable></arg>
49 <command>gresource</command>
50 <arg choice="plain">sections</arg>
51 <arg choice="plain"><replaceable>FILE</replaceable></arg>
54 <command>gresource</command>
55 <arg choice="plain">help</arg>
56 <arg choice="opt"><replaceable>COMMAND</replaceable></arg>
60 <refsect1><title>Description</title>
61 <para><command>gresource</command> offers a simple commandline
62 interface to <link linkend="GResource"><type>GResource</type></link>.
63 It lets you list and extract resources that have been compiled
64 into a resource file or included in an elf file (a binary or a
68 The file to operate on is specified by the <replaceable>FILE</replaceable>
72 If an elf file includes multiple sections with resources, it is
73 possible to select which one to operate on with the
74 <arg choice="plain">--section</arg> option. Use the
75 <arg choice="plain">sections</arg> command to find available sections.
79 <refsect1><title>Commands</title>
83 <term><option>list</option></term>
85 Lists resources. If <replaceable>SECTION</replaceable> is given, only
86 list resourcs in this section. If <replaceable>PATH</replaceable> is
87 given, only list matching resources.
92 <term><option>details</option></term>
94 Lists resources with details. If <replaceable>SECTION</replaceable>
95 is given, only list resources in this section. If
96 <replaceable>PATH</replaceable> is given, only list matching resources.
97 Details include the section, size and compression of each resource.
102 <term><option>extract</option></term>
104 Extracts the resource named by <replaceable>PATH</replaceable> to stdout.
105 Note that resources may contain binary data.
110 <term><option>sections</option></term>
112 Lists sections containing resources. This is only interesting if
113 <replaceable>FILE</replaceable> is an elf file.
118 <term><option>help</option></term>
120 Prints help and exits.