g-ir- tools: Add examples to man pages

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2024-02-14 11:41:14 +00:00
parent d0cb89538a
commit 66fda286e1
2 changed files with 21 additions and 0 deletions

View File

@ -78,6 +78,13 @@ OPTIONS
Show programs version number and exit.
EXAMPLE
=======
::
$ gi-compile-repository -o Gio-2.0.typelib /usr/share/gir-1.0/Gio-2.0.gir
BUGS
====

View File

@ -75,6 +75,20 @@ OPTIONS
Show programs version number and exit.
EXAMPLE
=======
::
$ libdir=/usr/lib/x86_64-linux-gnu # or /usr/lib64 or similar
$ gi-decompile-typelib -o Gio-2.0.gir \
$libdir/girepository-1.0/Gio-2.0.typelib
$ diff -u /usr/share/gir-1.0/Gio-2.0.gir Gio-2.0.gir
You will see that the original GIR XML contains much more information
than the decompiled typelib.
BUGS
====