[sr-dev] git:master:19359772: kamcmd: support VERSION_NODATE and VERSION_DATE for reproducible builds

Victor Seva linuxmaniac at torreviejawireless.org
Wed Aug 12 11:05:46 CEST 2015


Module: kamailio
Branch: master
Commit: 19359772acf1cbd9dedb244c1fe327ec47b7dc9c
URL: https://github.com/kamailio/kamailio/commit/19359772acf1cbd9dedb244c1fe327ec47b7dc9c

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at 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/19359772acf1cbd9dedb244c1fe327ec47b7dc9c.diff
Patch: https://github.com/kamailio/kamailio/commit/19359772acf1cbd9dedb244c1fe327ec47b7dc9c.patch

---

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\




More information about the sr-dev mailing list