[BusyBox-cvs] busybox/scripts/config confdata.c,1.4,1.5

Glenn McGrath bug1 at busybox.net
Tue Jan 13 10:57:35 UTC 2004


Update of /var/cvs/busybox/scripts/config
In directory nail:/tmp/cvs-serv13640/scripts/config

Modified Files:
	confdata.c 
Log Message:
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.


Index: confdata.c
===================================================================
RCS file: /var/cvs/busybox/scripts/config/confdata.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- confdata.c	3 Oct 2003 08:28:59 -0000	1.4
+++ confdata.c	13 Jan 2004 10:57:32 -0000	1.5
@@ -292,16 +292,21 @@
 	fprintf(out, "#\n"
 		     "# Automatically generated make config: don't edit\n"
 		     "#\n");
-	if (out_h)
+	if (out_h) {
 		fprintf(out_h, "/*\n"
 			     " * Automatically generated header file: don't edit\n"
 			     " */\n\n"
 			     "#define AUTOCONF_INCLUDED\n\n"
 			     "/* Version Number */\n"
 			     "#define BB_VER \"%s\"\n"
-			     "#define BB_BT \"%s\"\n\n",
+			     "#define BB_BT \"%s\"\n",
 			     getenv("VERSION"),
 			     getenv("BUILDTIME"));
+		if (getenv("EXTRA_VERSION"))
+			fprintf(out_h, "#define BB_EXTRA_VERSION \"%s\"\n",
+				     getenv("EXTRA_VERSION"));
+		fprintf(out_h, "\n");
+	}
 
 	if (!sym_change_count)
 		sym_clear_all_valid();




More information about the busybox-cvs mailing list