1 /*************************************************
3 *************************************************/
5 /* Copyright (c) The Exim Maintainers 2020 - 2024 */
6 /* Copyright (c) University of Cambridge 1995 - 2018 */
7 /* See the file NOTICE for conditions of use and distribution. */
8 /* SPDX-License-Identifier: GPL-2.0-or-later */
21 extern uschar *version_string;
22 extern uschar *version_date;
27 #ifndef EXIM_BUILD_DATE_OVERRIDE
32 version_string = US"2.06";
34 #ifdef EXIM_BUILD_DATE_OVERRIDE
35 /* Reproducible build support; build tooling should have given us something looking like
36 * "25-Feb-2017 20:15:40" in EXIM_BUILD_DATE_OVERRIDE based on $SOURCE_DATE_EPOCH in environ
37 * per <https://reproducible-builds.org/specs/source-date-epoch/>
39 version_date = US malloc(32);
41 Ustrncat(version_date, EXIM_BUILD_DATE_OVERRIDE, 31);
44 Ustrcpy(today, US __DATE__);
45 if (today[4] == ' ') i = 1;
46 today[3] = today[6] = '-';
48 version_date = US malloc(32);
50 Ustrncat(version_date, today+4+i, 3-i);
51 Ustrncat(version_date, today, 4);
52 Ustrncat(version_date, today+7, 4);
53 Ustrcat(version_date, US" ");
54 Ustrcat(version_date, US __TIME__);
58 /* End of em_version.c */