From owner-freebsd-hackers Fri Dec 5 00:16:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA00822 for hackers-outgoing; Fri, 5 Dec 1997 00:16:58 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from Tandem.com (suntan.tandem.com [192.216.221.8]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA00811 for ; Fri, 5 Dec 1997 00:16:53 -0800 (PST) (envelope-from grog@lemis.com) Received: from papillon.lemis.com ([168.87.69.104]) by Tandem.com (8.8.8/2.0.1) with ESMTP id AAA24025; Fri, 5 Dec 1997 00:16:49 -0800 (PST) Received: (grog@localhost) by papillon.lemis.com (8.8.8/8.6.12) id QAA01777; Fri, 5 Dec 1997 16:13:42 +0800 (CST) Message-ID: <19971205161339.59500@lemis.com> Date: Fri, 5 Dec 1997 16:13:39 +0800 From: Greg Lehey To: Francisco Reyes Cc: "hackers@freebsd.org" Subject: Re: Why so many steps to build new kernel? References: <199712050750.XAA25888@super.zippo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <199712050750.XAA25888@super.zippo.com>; from Francisco Reyes on Fri, Dec 05, 1997 at 02:50:07AM -0400 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, Dec 05, 1997 at 02:50:07AM -0400, Francisco Reyes wrote: > I was wondering if there would be any problems with creating a script > for some of the steps of building a new kernel. What if any would be > the problem with having a script which does: > > config kern1 > cd ../../kern1 > make depend > make all > make install Why not? Of course, you could simplify it. > If such script was created it should check the return code of the > make command to make sure there were no problems. You wouldn't need to do that if you wrote: make config depend all install Better still, you could make a target 'world' which did this for you, including the cd's and configs in your original version. Greg