[sr-dev] git:master:559b8488: Merge pull request #285 from kamailio/vseva/kamcmd_version_nodate

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


Module: kamailio
Branch: master
Commit: 559b8488beb2bd3e231c4d0e54061ab69daf95d6
URL: https://github.com/kamailio/kamailio/commit/559b8488beb2bd3e231c4d0e54061ab69daf95d6

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2015-08-12T11:05:41+02:00

Merge pull request #285 from kamailio/vseva/kamcmd_version_nodate

kamcmd: support VERSION_NODATE and VERSION_DATE for reproducible builds

---

Modified: utils/kamcmd/kamcmd.c

---

Diff:  https://github.com/kamailio/kamailio/commit/559b8488beb2bd3e231c4d0e54061ab69daf95d6.diff
Patch: https://github.com/kamailio/kamailio/commit/559b8488beb2bd3e231c4d0e54061ab69daf95d6.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