summaryrefslogtreecommitdiff
path: root/scripts/config/confdata.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2004-01-13 10:57:32 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2004-01-13 10:57:32 +0000
commit7c87b67c08b7fe379f203ecdfff6bb7d604719a5 (patch)
tree193fac3f25479000e32bbf2cecb00a1c667649fb /scripts/config/confdata.c
parent76620620ecbf2e8d456e00592bd7d5f8e31a33d2 (diff)
downloadbusybox-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.
Diffstat (limited to 'scripts/config/confdata.c')
-rw-r--r--scripts/config/confdata.c9
1 files changed, 7 insertions, 2 deletions
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();