Explorar o código

Merge pull request #285 from kamailio/vseva/kamcmd_version_nodate

kamcmd: support VERSION_NODATE and VERSION_DATE for reproducible builds
Victor Seva %!s(int64=10) %!d(string=hai) anos
pai
achega
559b8488be
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      utils/kamcmd/kamcmd.c

+ 8 - 0
utils/kamcmd/kamcmd.c

@@ -87,7 +87,15 @@
 
 
 static char id[]="$Id$";
 static char id[]="$Id$";
 static char version[]= NAME " " VERSION;
 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__;
 static char compiled[]= __TIME__ " " __DATE__;
+#endif
+#endif
 static char help_msg[]="\
 static char help_msg[]="\
 Usage: " NAME " [options][-s address] [ cmd ]\n\
 Usage: " NAME " [options][-s address] [ cmd ]\n\
 Options:\n\
 Options:\n\