From owner-freebsd-stable Sat Apr 27 14:23:15 2002 Delivered-To: freebsd-stable@freebsd.org Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by hub.freebsd.org (Postfix) with ESMTP id EED4B37B41B for ; Sat, 27 Apr 2002 14:23:07 -0700 (PDT) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id OAA10451; Sat, 27 Apr 2002 14:23:06 -0700 Message-ID: <3CCB16B8.8000509@owt.com> Date: Sat, 27 Apr 2002 14:23:04 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: pjklist@ekahuna.com Cc: stable@FreeBSD.ORG Subject: Re: General Buildworld request References: <20020427205837386.AAA803@empty1.ekahuna.com@pc02.ekahuna.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Philip J. Koenig wrote: > Whenever I run buildworld, buildkernel, mergemaster, installworld or > installkernel I use tee to redirect the output to a log file in case > I need to troubleshoot a problem or check what was updated. > I also timestamp the beginning of the process by sending the output > of 'date' to the top of each logfile. > > For some time now, the kernel build process has internally echoed the > start time at the beginning of the process. > > Since I have to think that knowing how long the build process takes > is interesting to most people who have to keep machines updated, is > it too much to ask that "buildworld" adopt the same practice as > "buildkernel" and echo a timestamp at the beginning, so I don't have > to do it manually each time in order to track how long the process > takes? (stamping the end might also be handy, although by default one > can just look at the file timestamp, unless it gets changed for some > reason) > I have a number of shell scripts such as the following one I call mkworld. It is #! /bin/sh cd /usr/src make buildworld 2>&1 | tee /var/log/build/bworld-`date "+%Y%m%d-%H%M"`.log You have to undo the wrap and I time by doing nothing more than "time mkworld". I also get a complete copy of my build. I have one for mkkernel, inkernel, and inworld. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message