summaryrefstree
path: root/usr/share/man/man1/gresource.1
blob: 75a95498508bb2040ef1334cac30311b4f19a035 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
'\" t
.\"     Title: gresource
.\"    Author: Matthias Clasen
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 08/05/2014
.\"    Manual: User Commands
.\"    Source: GIO
.\"  Language: English
.\"
.TH "GRESOURCE" "1" "" "GIO" "User Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
gresource \- GResource tool
.SH "SYNOPSIS"
.HP \w'\fBgresource\fR\ 'u
\fBgresource\fR [\-\-section\ \fISECTION\fR] list \fIFILE\fR [\fIPATH\fR]
.HP \w'\fBgresource\fR\ 'u
\fBgresource\fR [\-\-section\ \fISECTION\fR] details \fIFILE\fR [\fIPATH\fR]
.HP \w'\fBgresource\fR\ 'u
\fBgresource\fR [\-\-section\ \fISECTION\fR] extract \fIFILE\fR \fIPATH\fR
.HP \w'\fBgresource\fR\ 'u
\fBgresource\fR sections \fIFILE\fR
.HP \w'\fBgresource\fR\ 'u
\fBgresource\fR help [\fICOMMAND\fR]
.SH "DESCRIPTION"
.PP
\fBgresource\fR
offers a simple commandline interface to
\fBGResource\fR\&. 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)\&.
.PP
The file to operate on is specified by the
\fIFILE\fR
argument\&.
.PP
If an elf file includes multiple sections with resources, it is possible to select which one to operate on with the
\-\-section
option\&. Use the
sections
command to find available sections\&.
.SH "COMMANDS"
.PP
\fBlist\fR
.RS 4
Lists resources\&. If
\fISECTION\fR
is given, only list resourcs in this section\&. If
\fIPATH\fR
is given, only list matching resources\&.
.RE
.PP
\fBdetails\fR
.RS 4
Lists resources with details\&. If
\fISECTION\fR
is given, only list resources in this section\&. If
\fIPATH\fR
is given, only list matching resources\&. Details include the section, size and compression of each resource\&.
.RE
.PP
\fBextract\fR
.RS 4
Extracts the resource named by
\fIPATH\fR
to stdout\&. Note that resources may contain binary data\&.
.RE
.PP
\fBsections\fR
.RS 4
Lists sections containing resources\&. This is only interesting if
\fIFILE\fR
is an elf file\&.
.RE
.PP
\fBhelp\fR
.RS 4
Prints help and exits\&.
.RE