aboutsummaryrefslogtreecommitdiff
path: root/src/version.c.in
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-29 15:44:53 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:45 +0200
commit736c78d4c79f041faf33920bd0f82c29ecbe9586 (patch)
tree8fbf75c5cf5f2deb70d426b8c94eac78e46df968 /src/version.c.in
parent42898f7d59e215434fa2aead84223f64b30fcee8 (diff)
Version information via Meson
Diffstat (limited to 'src/version.c.in')
-rw-r--r--src/version.c.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/version.c.in b/src/version.c.in
new file mode 100644
index 00000000..bf2fddee
--- /dev/null
+++ b/src/version.c.in
@@ -0,0 +1,13 @@
+const char *crystfel_version_string()
+{
+ return "@VCS_TAG@";
+}
+
+const char *crystfel_licence_string()
+{
+ return "License GPLv3+: GNU GPL version 3 or later" \
+ " <http://gnu.org/licenses/gpl.html>.\n" \
+ "This is free software: you are free to change and redistribute it.\n" \
+ "There is NO WARRANTY, to the extent permitted by law.\n\n" \
+ "Written by Thomas White and others.";
+}