From 42898f7d59e215434fa2aead84223f64b30fcee8 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 29 Jul 2020 15:44:02 +0200 Subject: New way of injecting version information Also, this fixes some incorrect headers and adds --version flags to programs which didn't yet have them. --- src/make_pixelmap.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/make_pixelmap.c') diff --git a/src/make_pixelmap.c b/src/make_pixelmap.c index eedcb439..cb5afcac 100644 --- a/src/make_pixelmap.c +++ b/src/make_pixelmap.c @@ -43,9 +43,11 @@ #include #include -#include "utils.h" -#include "datatemplate.h" -#include "detgeom.h" +#include +#include +#include + +#include "version.h" static void show_help(const char *s) @@ -190,6 +192,7 @@ int main(int argc, char *argv[]) {"badmap", 0, &badmap, 1}, {"good-pixel", 1, NULL, 301}, {"bad-pixel", 1, NULL, 302}, + {"version", 0, NULL, 2}, {0, 0, NULL, 0} }; @@ -207,6 +210,13 @@ int main(int argc, char *argv[]) output_file = strdup(optarg); break; + case 2 : + printf("CrystFEL: %s\n", + crystfel_version_string()); + printf("%s\n", + crystfel_licence_string()); + return 0; + case 301: if (sscanf(optarg, "%d", &good_pixel_val) != 1) { -- cgit v1.2.3