Subject: misc/18173: Print start date when build finishes
To: None <>
From: Julio Merino <>
List: netbsd-bugs
Date: 09/05/2002 13:41:47
>Number:         18173
>Category:       misc
>Synopsis:       Print start date when build finishes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 05 04:40:00 PDT 2002
>Originator:     Julio Merino
>Release:        NetBSD 1.6G
System: NetBSD darkstar 1.6G NetBSD 1.6G (DARKSTAR) #10: Wed Sep 4 15:25:12 CEST 2002 jmmv@darkstar:/var/build/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
	Recently, Luke added some stuff to the src/Makefile file to show
	the end date when the build finishes. Although, it would be more
	interesting if it showed also the start date, so you can easily
	check how much time it consumed...

	As it is now, you need to keep a full log of the build process
	and then, browse it to look at timestamps.
	This patch should do the trick.

Index: Makefile
RCS file: /cvsroot/basesrc/Makefile,v
retrieving revision 1.185
diff -u -r1.185 Makefile
--- Makefile	2002/08/30 06:30:33	1.185
+++ Makefile	2002/09/05 11:33:07
@@ -149,14 +149,16 @@
 # Build the system and install into DESTDIR.
 .if defined(BUILD_DONE)
 	@echo "Build already installed into ${DESTDIR}"
-	@printf "Build started at: " && date
+	@printf "Build started at: ${START_DATE}\n"
 .for tgt in ${BUILDTARGETS}
 	@(cd ${.CURDIR} && ${MAKE} ${tgt})
+	@printf "Build started at: ${START_DATE}\n"
 	@printf "Build finished at: " && date