1 /*************************************************
3 *************************************************/
5 /* Copyright (c) University of Cambridge 1995 - 2018 */
6 /* Copyright (c) The Exim Maintainers 2020 - 2021 */
7 /* See the file NOTICE for conditions of use and distribution. */
8 /* SPDX-License-Identifier: GPL-2.0-or-later */
12 /* Needed by macros.h */
13 /* Some systems have PATH_MAX and some have MAX_PATH_LEN. */
17 # define PATH_MAX MAX_PATH_LEN
19 # define PATH_MAX 1024
31 extern uschar *version_string;
32 extern uschar *version_date;
40 version_string = US"2.06";
42 #ifdef EXIM_BUILD_DATE_OVERRIDE
43 /* Reproducible build support; build tooling should have given us something looking like
44 * "25-Feb-2017 20:15:40" in EXIM_BUILD_DATE_OVERRIDE based on $SOURCE_DATE_EPOCH in environ
45 * per <https://reproducible-builds.org/specs/source-date-epoch/>
47 version_date = US malloc(32);
49 Ustrncat(version_date, EXIM_BUILD_DATE_OVERRIDE, 31);
52 Ustrcpy(today, US __DATE__);
53 if (today[4] == ' ') i = 1;
54 today[3] = today[6] = '-';
56 version_date = US malloc(32);
58 Ustrncat(version_date, today+4+i, 3-i);
59 Ustrncat(version_date, today, 4);
60 Ustrncat(version_date, today+7, 4);
61 Ustrcat(version_date, US" ");
62 Ustrcat(version_date, US __TIME__);
66 /* End of em_version.c */