source: mainline/boot/generic/src/version.c@ 39916d6

Last change on this file since 39916d6 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 817 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2005 Martin Decky
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <version.h>
8#include <printf.h>
9#include <macros.h>
10
11static const char *project = "HelenOS bootloader";
12static const char *copyright = STRING(HELENOS_COPYRIGHT);
13static const char *release = STRING(HELENOS_RELEASE);
14static const char *name = STRING(HELENOS_CODENAME);
15static const char *arch = STRING(KARCH);
16
17#ifdef REVISION
18static const char *revision = ", revision " STRING(REVISION);
19#else
20static const char *revision = "";
21#endif
22
23#ifdef TIMESTAMP
24static const char *timestamp = " on " STRING(TIMESTAMP);
25#else
26static const char *timestamp = "";
27#endif
28
29void version_print(void)
30{
31 printf("%s, release %s (%s)%s\nBuilt%s for %s\n%s\n",
32 project, release, name, revision, timestamp, arch, copyright);
33}
Note: See TracBrowser for help on using the repository browser.