aboutsummaryrefslogtreecommitdiff
path: root/fiv-jpegcrop.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-08-12 21:16:37 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-08-13 12:42:21 +0200
commitdd09af34b791def2ef370232922d968f5176d1e1 (patch)
treee85df427a2c28c8b1ed0cb435efc4006e85c2516 /fiv-jpegcrop.c
parentdcbc8a90b4caee1f57d185ef47d44818e67711f5 (diff)
downloadfiv-dd09af34b791def2ef370232922d968f5176d1e1.tar.gz
fiv-dd09af34b791def2ef370232922d968f5176d1e1.tar.xz
fiv-dd09af34b791def2ef370232922d968f5176d1e1.zip
Make binaries say what git commit they come from
The manual skipping of the initial "v" from tag names is unfortunate, but still a bit better than further cluttering up the build system.
Diffstat (limited to 'fiv-jpegcrop.c')
-rw-r--r--fiv-jpegcrop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fiv-jpegcrop.c b/fiv-jpegcrop.c
index fad0c22..f19ff74 100644
--- a/fiv-jpegcrop.c
+++ b/fiv-jpegcrop.c
@@ -397,7 +397,8 @@ main(int argc, char *argv[])
gboolean initialized = gtk_init_with_args(
&argc, &argv, " - Lossless JPEG cropper", options, NULL, &error);
if (show_version) {
- printf("fiv-jpegcrop " PROJECT_VERSION "\n");
+ const char *version = PROJECT_VERSION;
+ printf("%s %s\n", "fiv-jpegcrop", &version[*version == 'v']);
return 0;
}
if (!initialized)