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