1 /*************************************************
3 *************************************************/
5 /* Copyright (c) University of Cambridge 1995 - 2018 */
6 /* See the file NOTICE for conditions of use and distribution. */
15 extern uschar *version_string;
16 extern uschar *version_date;
24 version_string = US"2.06";
26 #ifdef EXIM_BUILD_DATE_OVERRIDE
27 /* Reproducible build support; build tooling should have given us something looking like
28 * "25-Feb-2017 20:15:40" in EXIM_BUILD_DATE_OVERRIDE based on $SOURCE_DATE_EPOCH in environ
29 * per <https://reproducible-builds.org/specs/source-date-epoch/>
31 version_date = US malloc(32);
33 Ustrncat(version_date, EXIM_BUILD_DATE_OVERRIDE, 31);
36 Ustrcpy(today, __DATE__);
37 if (today[4] == ' ') i = 1;
38 today[3] = today[6] = '-';
40 version_date = US malloc(32);
42 Ustrncat(version_date, today+4+i, 3-i);
43 Ustrncat(version_date, today, 4);
44 Ustrncat(version_date, today+7, 4);
45 Ustrcat(version_date, " ");
46 Ustrcat(version_date, __TIME__);
50 /* End of em_version.c */