From fe04613718ba811c713dd8461098968db4c264fa Mon Sep 17 00:00:00 2001 From: Raoul Hecky Date: Sun, 9 Jan 2022 09:54:27 +0100 Subject: [PATCH] Add version info from package --- m4/calaos.m4 | 2 +- src/bin/calaos_server/version.h | 6 ++++++ version | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/bin/calaos_server/version.h create mode 100644 version diff --git a/m4/calaos.m4 b/m4/calaos.m4 index e47f3512..57004c52 100644 --- a/m4/calaos.m4 +++ b/m4/calaos.m4 @@ -1,6 +1,6 @@ dnl CALAOS_VERSION AC_DEFUN([CALAOS_VERSION], [dnl -m4_define([v_revision], m4_esyscmd([(git describe --tags --always master 2>/dev/null || echo 0) | tr -d '\n']))dnl +m4_define([v_revision], m4_esyscmd([(cat version 2>/dev/null || echo 0) | tr -d '\n']))dnl m4_define([calaos_version], [v_revision]) ]) diff --git a/src/bin/calaos_server/version.h b/src/bin/calaos_server/version.h new file mode 100644 index 00000000..bcc9df99 --- /dev/null +++ b/src/bin/calaos_server/version.h @@ -0,0 +1,6 @@ +#ifndef VERSION_H +#define VERSION_H + +#define PKG_VERSION_STR "git" + +#endif // VERSION_H diff --git a/version b/version new file mode 100644 index 00000000..5664e303 --- /dev/null +++ b/version @@ -0,0 +1 @@ +git