diff options
author | Thomas White <taw@physics.org> | 2020-07-29 15:44:02 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | 42898f7d59e215434fa2aead84223f64b30fcee8 (patch) | |
tree | 5cdfb4c0c279c766efcbbc6c455ee58a5c8741f1 /src/partial_sim.c | |
parent | 6105a7797b96418d940ced7d88c6cf2b308b9711 (diff) |
New way of injecting version information
Also, this fixes some incorrect headers and adds --version flags to
programs which didn't yet have them.
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r-- | src/partial_sim.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index 9e774431..5d1a79e8 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -42,14 +42,17 @@ #include <pthread.h> #include <gsl/gsl_rng.h> -#include "image.h" -#include "utils.h" -#include "reflist-utils.h" -#include "symmetry.h" -#include "geometry.h" -#include "stream.h" -#include "thread-pool.h" -#include "cell-utils.h" +#include <image.h> +#include <utils.h> +#include <reflist-utils.h> +#include <symmetry.h> +#include <geometry.h> +#include <stream.h> +#include <thread-pool.h> +#include <cell-utils.h> + +#include "version.h" + /* Number of bins for partiality graph */ #define NBINS 50 @@ -589,8 +592,10 @@ int main(int argc, char *argv[]) return 0; case 'v' : - 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 'b' : |