After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772269 - Add --version options to glib-compile-resources and glib-compile-schemas
Add --version options to glib-compile-resources and glib-compile-schemas
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2016-09-30 22:02 UTC by Sam Thursfield
Modified: 2016-10-06 20:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glib-compile-resources: Add a --version option (1.88 KB, patch)
2016-09-30 22:02 UTC, Sam Thursfield
reviewed Details | Review
glib-compile-schemas: Add a --version option (1.60 KB, patch)
2016-09-30 22:02 UTC, Sam Thursfield
reviewed Details | Review

Description Sam Thursfield 2016-09-30 22:02:22 UTC
There are new features of glib-compile-resources recently, so it would be useful to know which version is actually in use by a program. I figure it makes sense to add the same thing to glib-compile-schemas as well.
Comment 1 Sam Thursfield 2016-09-30 22:02:46 UTC
Created attachment 336702 [details] [review]
glib-compile-resources: Add a --version option

There have been some improvements to the tool recently, but it's hard to
know if those are available on a given system unless the tool provides a
--version commandline option.
Comment 2 Sam Thursfield 2016-09-30 22:02:51 UTC
Created attachment 336703 [details] [review]
glib-compile-schemas: Add a --version option
Comment 3 Sam Thursfield 2016-10-01 20:54:41 UTC
Actually `pkg-config --modversion glib-2.0` is a reasonable way for a build system to find out the version of these tools. But I still think a --version option in the tools is nice-to-have.
Comment 4 Matthias Clasen 2016-10-05 13:46:13 UTC
Review of attachment 336702 [details] [review]:

sure. Just please update docs/reference/glib/glib-compile-resources.xml to mention the new argument. Fine to push directly with the added docs
Comment 5 Matthias Clasen 2016-10-05 13:47:06 UTC
Review of attachment 336703 [details] [review]:

same comment as the previous patch: please add the docs and push
Comment 6 Sam Thursfield 2016-10-06 20:11:33 UTC
Ok, done. Thanks for the review!