aboutsummaryrefslogtreecommitdiff
path: root/scripts/config
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-01-13 10:57:32 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-01-13 10:57:32 +0000
commitf40d58e66d888b3cfbc9e53b676cd0134b563cf3 (patch)
tree193fac3f25479000e32bbf2cecb00a1c667649fb /scripts/config
parent15822a96b0e0c6579e34c5bf5bbf25ec18d128c3 (diff)
downloadbusybox-w32-f40d58e66d888b3cfbc9e53b676cd0134b563cf3.tar.gz
busybox-w32-f40d58e66d888b3cfbc9e53b676cd0134b563cf3.tar.bz2
busybox-w32-f40d58e66d888b3cfbc9e53b676cd0134b563cf3.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. git-svn-id: svn://busybox.net/trunk/busybox@8277 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'scripts/config')
-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();