Subversion Repositories HelenOS

Rev

Rev 3022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3022 Rev 4055
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>
-
 
39
#include "init.h"
38
#include "version.h"
40
#include "version.h"
39
 
41
 
40
char *release = RELEASE;
42
char *release = STRING(RELEASE);
41
 
43
 
42
#ifdef REVISION
44
#ifdef REVISION
43
    char *revision = ", revision " REVISION;
45
    char *revision = ", revision " STRING(REVISION);
44
#else
46
#else
45
    char *revision = "";
47
    char *revision = "";
46
#endif
48
#endif
47
 
49
 
48
#ifdef TIMESTAMP
50
#ifdef TIMESTAMP
49
    char *timestamp = "\nBuilt on " TIMESTAMP;
51
    char *timestamp = "\nBuilt on " STRING(TIMESTAMP);
50
#else
52
#else
51
    char *timestamp = "";
53
    char *timestamp = "";
52
#endif
54
#endif
53
 
55
 
-
 
56
void info_print(void)
-
 
57
{
-
 
58
    printf(NAME ": HelenOS init\n");
-
 
59
}
-
 
60
 
54
/** Print version information. */
61
/** Print version information. */
55
void version_print(void)
62
void version_print(void)
56
{
63
{
57
    printf("HelenOS init\nRelease %s%s%s\nCopyright (c) 2006 HelenOS project\n", release, revision, timestamp);
64
    printf("HelenOS init\nRelease %s%s%s\nCopyright (c) 2006 HelenOS project\n", release, revision, timestamp);
58
}
65
}