Module: kamailio
Branch: master
Commit: 19359772acf1cbd9dedb244c1fe327ec47b7dc9c
URL:
https://github.com/kamailio/kamailio/commit/19359772acf1cbd9dedb244c1fe327e…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2015-08-12T08:24:51+02:00
kamcmd: support VERSION_NODATE and VERSION_DATE for reproducible builds
support added e03d1279f49709e0d320478fa1ff7c27161c30ed
Related: #60
---
Modified: utils/kamcmd/kamcmd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/19359772acf1cbd9dedb244c1fe327e…
Patch:
https://github.com/kamailio/kamailio/commit/19359772acf1cbd9dedb244c1fe327e…
---
diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c
index 974127c..a49bb3a 100644
--- a/utils/kamcmd/kamcmd.c
+++ b/utils/kamcmd/kamcmd.c
@@ -87,7 +87,15 @@
static char id[]="$Id$";
static char version[]= NAME " " VERSION;
+#ifdef VERSION_NODATE
+static char compiled[] = "";
+#else
+#ifdef VERSION_DATE
+static char compiled[]= VERSION_DATE;
+#else
static char compiled[]= __TIME__ " " __DATE__;
+#endif
+#endif
static char help_msg[]="\
Usage: " NAME " [options][-s address] [ cmd ]\n\
Options:\n\