Rev 3424 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3424 | Rev 4377 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | * @file |
33 | * @file |
34 | */ |
34 | */ |
35 | 35 | ||
36 | #include <unistd.h> |
36 | #include <unistd.h> |
37 | #include <stdio.h> |
37 | #include <stdio.h> |
- | 38 | #include <macros.h> |
|
38 | #include "init.h" |
39 | #include "init.h" |
39 | #include "version.h" |
40 | #include "version.h" |
40 | 41 | ||
41 | char *release = RELEASE; |
42 | char *release = STRING(RELEASE); |
42 | 43 | ||
43 | #ifdef REVISION |
44 | #ifdef REVISION |
44 | char *revision = ", revision " REVISION; |
45 | char *revision = ", revision " STRING(REVISION); |
45 | #else |
46 | #else |
46 | char *revision = ""; |
47 | char *revision = ""; |
47 | #endif |
48 | #endif |
48 | 49 | ||
49 | #ifdef TIMESTAMP |
50 | #ifdef TIMESTAMP |
50 | char *timestamp = "\nBuilt on " TIMESTAMP; |
51 | char *timestamp = "\nBuilt on " STRING(TIMESTAMP); |
51 | #else |
52 | #else |
52 | char *timestamp = ""; |
53 | char *timestamp = ""; |
53 | #endif |
54 | #endif |
54 | 55 | ||
55 | void info_print(void) |
56 | void info_print(void) |
Line 58... | Line 59... | ||
58 | } |
59 | } |
59 | 60 | ||
60 | /** Print version information. */ |
61 | /** Print version information. */ |
61 | void version_print(void) |
62 | void version_print(void) |
62 | { |
63 | { |
63 | printf("HelenOS init\nRelease %s%s%s\nCopyright (c) 2006 HelenOS project\n", release, revision, timestamp); |
64 | printf("HelenOS init\nRelease %s%s%s\n", release, revision, timestamp); |
- | 65 | printf("Copyright (c) 2001-2009 HelenOS project\n"); |
|
64 | } |
66 | } |
65 | 67 | ||
66 | /** @} |
68 | /** @} |
67 | */ |
69 | */ |