Browse code

kamcmd: support VERSION_NODATE and VERSION_DATE for reproducible builds

support added e03d1279f49709e0d320478fa1ff7c27161c30ed

Related: #60

Victor Seva authored on 12/08/2015 06:16:52
Showing 1 changed files
... ...
@@ -87,7 +87,15 @@
87 87
 
88 88
 static char id[]="$Id$";
89 89
 static char version[]= NAME " " VERSION;
90
+#ifdef VERSION_NODATE
91
+static char compiled[] = "";
92
+#else
93
+#ifdef VERSION_DATE
94
+static char compiled[]= VERSION_DATE;
95
+#else
90 96
 static char compiled[]= __TIME__ " " __DATE__;
97
+#endif
98
+#endif
91 99
 static char help_msg[]="\
92 100
 Usage: " NAME " [options][-s address] [ cmd ]\n\
93 101
 Options:\n\