diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-01-13 10:57:32 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-01-13 10:57:32 +0000 |
commit | 7c87b67c08b7fe379f203ecdfff6bb7d604719a5 (patch) | |
tree | 193fac3f25479000e32bbf2cecb00a1c667649fb | |
parent | 76620620ecbf2e8d456e00592bd7d5f8e31a33d2 (diff) | |
download | busybox-w32-7c87b67c08b7fe379f203ecdfff6bb7d604719a5.tar.gz busybox-w32-7c87b67c08b7fe379f203ecdfff6bb7d604719a5.tar.bz2 busybox-w32-7c87b67c08b7fe379f203ecdfff6bb7d604719a5.zip |
Patch from Bastian Blank, allow the buildtime to be overriden with a
different string, used by the debian busybox-cvs to specify the debian
date based version number.
-rw-r--r-- | include/busybox.h | 4 | ||||
-rw-r--r-- | scripts/config/confdata.c | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/include/busybox.h b/include/busybox.h index aaa844f43..28ea2530f 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -37,7 +37,11 @@ | |||
37 | #endif | 37 | #endif |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #ifndef BB_EXTRA_VERSION | ||
40 | #define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")" | 41 | #define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")" |
42 | #else | ||
43 | #define BB_BANNER "BusyBox v" BB_VER " (" BB_EXTRA_VERSION ")" | ||
44 | #endif | ||
41 | 45 | ||
42 | #ifdef DMALLOC | 46 | #ifdef DMALLOC |
43 | #include <dmalloc.h> | 47 | #include <dmalloc.h> |
diff --git a/scripts/config/confdata.c b/scripts/config/confdata.c index 768f771d0..aca6864cc 100644 --- a/scripts/config/confdata.c +++ b/scripts/config/confdata.c | |||
@@ -292,16 +292,21 @@ int conf_write(const char *name) | |||
292 | fprintf(out, "#\n" | 292 | fprintf(out, "#\n" |
293 | "# Automatically generated make config: don't edit\n" | 293 | "# Automatically generated make config: don't edit\n" |
294 | "#\n"); | 294 | "#\n"); |
295 | if (out_h) | 295 | if (out_h) { |
296 | fprintf(out_h, "/*\n" | 296 | fprintf(out_h, "/*\n" |
297 | " * Automatically generated header file: don't edit\n" | 297 | " * Automatically generated header file: don't edit\n" |
298 | " */\n\n" | 298 | " */\n\n" |
299 | "#define AUTOCONF_INCLUDED\n\n" | 299 | "#define AUTOCONF_INCLUDED\n\n" |
300 | "/* Version Number */\n" | 300 | "/* Version Number */\n" |
301 | "#define BB_VER \"%s\"\n" | 301 | "#define BB_VER \"%s\"\n" |
302 | "#define BB_BT \"%s\"\n\n", | 302 | "#define BB_BT \"%s\"\n", |
303 | getenv("VERSION"), | 303 | getenv("VERSION"), |
304 | getenv("BUILDTIME")); | 304 | getenv("BUILDTIME")); |
305 | if (getenv("EXTRA_VERSION")) | ||
306 | fprintf(out_h, "#define BB_EXTRA_VERSION \"%s\"\n", | ||
307 | getenv("EXTRA_VERSION")); | ||
308 | fprintf(out_h, "\n"); | ||
309 | } | ||
305 | 310 | ||
306 | if (!sym_change_count) | 311 | if (!sym_change_count) |
307 | sym_clear_all_valid(); | 312 | sym_clear_all_valid(); |