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 |
|
---|
11 | static const char *project = "HelenOS bootloader";
|
---|
12 | static const char *copyright = STRING(HELENOS_COPYRIGHT);
|
---|
13 | static const char *release = STRING(HELENOS_RELEASE);
|
---|
14 | static const char *name = STRING(HELENOS_CODENAME);
|
---|
15 | static const char *arch = STRING(KARCH);
|
---|
16 |
|
---|
17 | #ifdef REVISION
|
---|
18 | static const char *revision = ", revision " STRING(REVISION);
|
---|
19 | #else
|
---|
20 | static const char *revision = "";
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | #ifdef TIMESTAMP
|
---|
24 | static const char *timestamp = " on " STRING(TIMESTAMP);
|
---|
25 | #else
|
---|
26 | static const char *timestamp = "";
|
---|
27 | #endif
|
---|
28 |
|
---|
29 | void 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.