- Timestamp:
- 2006-11-24T19:27:09Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 22f851e
- Parents:
- 44d0758
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
r44d0758 raca95f6b 30 30 # 31 31 32 -include ../version33 32 -include Makefile.config 34 33 -
uspace/init/Makefile
r44d0758 raca95f6b 27 27 # 28 28 29 include ../../version 30 include ../Makefile.config 31 29 32 ## Setup toolchain 30 33 # … … 37 40 38 41 LIBS = $(LIBC_PREFIX)/libc.a 42 DEFS += -DRELEASE=\"$(RELEASE)\" 43 44 ifdef REVISION 45 DEFS += "-DREVISION=\"$(REVISION)\"" 46 endif 47 48 ifdef TIMESTAMP 49 DEFS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" 50 endif 39 51 40 52 ## Sources -
uspace/init/version.c
r44d0758 raca95f6b 38 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 54 /** Print version information. */ 41 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
Note:
See TracChangeset
for help on using the changeset viewer.