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/process_hkl.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'src/process_hkl.c') diff --git a/src/process_hkl.c b/src/process_hkl.c index b840f4ce..352bea4a 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -43,16 +43,18 @@ #include #include -#include "utils.h" -#include "reflist-utils.h" -#include "symmetry.h" -#include "stream.h" -#include "reflist.h" -#include "image.h" -#include "crystal.h" -#include "thread-pool.h" -#include "geometry.h" -#include "cell-utils.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "version.h" static void show_help(const char *s) @@ -664,8 +666,10 @@ int main(int argc, char *argv[]) break; case 7 : - printf("CrystFEL: " CRYSTFEL_VERSIONSTRING "\n"); - printf(CRYSTFEL_BOILERPLATE"\n"); + printf("CrystFEL: %s\n", + crystfel_version_string()); + printf("%s\n", + crystfel_licence_string()); return 0; case '?' : -- cgit v1.2.3