From d994c38aba1f564e63058ce615dbb8bb4ae34e36 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 23 Jan 2012 00:23:18 -0500 Subject: [PATCH] Add docs for gresource --- docs/reference/gio/Makefile.am | 2 + docs/reference/gio/gio-docs.xml | 1 + docs/reference/gio/gresource.xml | 116 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 docs/reference/gio/gresource.xml diff --git a/docs/reference/gio/Makefile.am b/docs/reference/gio/Makefile.am index 27f3119..535aa26 100644 --- a/docs/reference/gio/Makefile.am +++ b/docs/reference/gio/Makefile.am @@ -112,6 +112,7 @@ content_files = \ gio-querymodules.xml \ glib-compile-schemas.xml\ gsettings.xml \ + gresource.xml \ gdbus.xml \ gdbus-codegen.xml \ $(NULL) @@ -142,6 +143,7 @@ man_MANS = \ glib-compile-schemas.1 \ glib-compile-resources.1 \ gsettings.1 \ + gresource.1 \ gdbus.1 \ gdbus-codegen.1 diff --git a/docs/reference/gio/gio-docs.xml b/docs/reference/gio/gio-docs.xml index 1987c30..b2397ed 100644 --- a/docs/reference/gio/gio-docs.xml +++ b/docs/reference/gio/gio-docs.xml @@ -226,6 +226,7 @@ + diff --git a/docs/reference/gio/gresource.xml b/docs/reference/gio/gresource.xml new file mode 100644 index 0000000..c577d26 --- /dev/null +++ b/docs/reference/gio/gresource.xml @@ -0,0 +1,116 @@ + + + + gresource + 1 + User Commands + + + + gresource + GResource tool + + + + + gresource + --section SECTION + list + FILE + PATH + + + gresource + --section SECTION + details + FILE + PATH + + + gresource + --section SECTION + extract + FILE + PATH + + + gresource + sections + FILE + + + gresource + help + COMMAND + + + +Description +gresource offers a simple commandline +interface to GResource. +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). + + +The file to operate on is specified by the FILE +argument. + + +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. + + +Commands + + + + + +Lists resources. If SECTION is given, only +list resourcs in this section. If PATH is +given, only list matching resources. + + + + + + +Lists resources with details. If SECTION +is given, only list resources in this section. If +PATH is given, only list matching resources. +Details include the section, size and compression of each resource. + + + + + + +Extracts the resource named by PATH to stdout. +Note that resources may contain binary data. + + + + + + +Lists sections containing resources. This is only interesting if +FILE is an elf file. + + + + + + +Prints help and exits. + + + + + + + + + -- 2.7.4