aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2014-05-06 17:51:47 +0200
committerThomas White <taw@physics.org>2014-05-21 16:04:23 +0200
commit8c212e3abb7f4343affeb5e9e1092b59d3b74075 (patch)
treefd6629a34ebe77b2fc0ac9afc77eb5ffff77c9af /libcrystfel
parent2658f7ca3fbdd0f037b9286812e6967b42517c0d (diff)
Added reporting of version number to all program and stream file
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/Makefile.am9
-rw-r--r--libcrystfel/src/stream.c3
2 files changed, 7 insertions, 5 deletions
diff --git a/libcrystfel/Makefile.am b/libcrystfel/Makefile.am
index 7d028b20..318dcd24 100644
--- a/libcrystfel/Makefile.am
+++ b/libcrystfel/Makefile.am
@@ -18,10 +18,11 @@ endif
libcrystfel_la_includedir=$(includedir)/crystfel/
-libcrystfel_la_include_HEADERS = src/beam-parameters.h src/hdf5-file.h \
- src/reflist.h src/symmetry.h src/cell.h \
- src/reflist-utils.h src/thread-pool.h \
- src/statistics.h src/utils.h src/detector.h \
+libcrystfel_la_include_HEADERS = ${top_srcdir}/version.h src/beam-parameters.h \
+ src/hdf5-file.h src/reflist.h src/symmetry.h \
+ src/cell.h src/reflist-utils.h \
+ src/thread-pool.h src/statistics.h \
+ src/utils.h src/detector.h \
src/geometry.h src/peaks.h src/stream.h \
src/render.h src/index.h src/image.h \
src/filters.h src/dirax.h src/mosflm.h \
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 4470d098..34c14573 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -42,6 +42,7 @@
#include <sys/stat.h>
#include <fcntl.h>
+#include "version.h"
#include "cell.h"
#include "cell-utils.h"
#include "utils.h"
@@ -821,7 +822,7 @@ Stream *open_stream_fd_for_write(int fd)
fprintf(st->fh, "CrystFEL stream format %i.%i\n",
st->major_version, st->minor_version);
-
+ fprintf(st->fh, "Generated by CrystFEL "CRYSTFEL_VERSIONSTRING"\n");
return st;
}