Module: kamailio Branch: master Commit: 559b8488beb2bd3e231c4d0e54061ab69daf95d6 URL: https://github.com/kamailio/kamailio/commit/559b8488beb2bd3e231c4d0e54061ab6...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@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/559b8488beb2bd3e231c4d0e54061ab6... Patch: https://github.com/kamailio/kamailio/commit/559b8488beb2bd3e231c4d0e54061ab6...
---
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\