Rev 1787 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1997 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | 35 | ||
36 | #include <unistd.h> |
36 | #include <unistd.h> |
37 | #include <stdio.h> |
37 | #include <stdio.h> |
38 | #include "version.h" |
38 | #include "version.h" |
39 | 39 | ||
- | 40 | char *release = RELEASE; |
|
- | 41 | ||
- | 42 | #ifdef REVISION |
|
- | 43 | char *revision = ", revision " REVISION; |
|
- | 44 | #else |
|
- | 45 | char *revision = ""; |
|
- | 46 | #endif |
|
- | 47 | ||
- | 48 | #ifdef TIMESTAMP |
|
- | 49 | char *timestamp = "\nBuilt on " TIMESTAMP; |
|
- | 50 | #else |
|
- | 51 | char *timestamp = ""; |
|
- | 52 | #endif |
|
- | 53 | ||
40 | /** Print version information. */ |
54 | /** Print version information. */ |
41 | void version_print(void) |
55 | void version_print(void) |
42 | { |
56 | { |
43 | puts("HelenOS init"); |
- | |
44 | puts("Copyright (C) 2006 HelenOS project"); |
57 | printf("HelenOS init\nRelease %s%s%s\nCopyright (C) 2006 HelenOS project\n", release, revision, timestamp); |
45 | } |
58 | } |
46 | 59 | ||
47 | /** @} |
60 | /** @} |
48 | */ |
61 | */ |
49 | - |