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. */
11 /* Needed by macros.h */
12 /* Some systems have PATH_MAX and some have MAX_PATH_LEN. */
16 # define PATH_MAX MAX_PATH_LEN
18 # define PATH_MAX 1024
30 extern uschar *version_string;
31 extern uschar *version_date;
39 version_string = US"2.06";
41 #ifdef EXIM_BUILD_DATE_OVERRIDE
42 /* Reproducible build support; build tooling should have given us something looking like
43 * "25-Feb-2017 20:15:40" in EXIM_BUILD_DATE_OVERRIDE based on $SOURCE_DATE_EPOCH in environ
44 * per <https://reproducible-builds.org/specs/source-date-epoch/>
46 version_date = US malloc(32);
48 Ustrncat(version_date, EXIM_BUILD_DATE_OVERRIDE, 31);
51 Ustrcpy(today, US __DATE__);
52 if (today[4] == ' ') i = 1;
53 today[3] = today[6] = '-';
55 version_date = US malloc(32);
57 Ustrncat(version_date, today+4+i, 3-i);
58 Ustrncat(version_date, today, 4);
59 Ustrncat(version_date, today+7, 4);
60 Ustrcat(version_date, US" ");
61 Ustrcat(version_date, US __TIME__);
65 /* End of em_version.c */