From owner-freebsd-arch Wed Dec 20 2:33:18 2000 From owner-freebsd-arch@FreeBSD.ORG Wed Dec 20 02:33:14 2000 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from henny.webweaving.org (unknown [212.113.16.243]) by hub.freebsd.org (Postfix) with ESMTP id 0CDCA37B402; Wed, 20 Dec 2000 02:33:11 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by henny.webweaving.org (8.9.3/8.9.3) with ESMTP id KAA59605; Wed, 20 Dec 2000 10:28:44 GMT (envelope-from n_hibma@calcaphon.com) Date: Wed, 20 Dec 2000 10:28:44 +0000 (GMT) From: Nick Hibma X-Sender: n_hibma@henny.webweaving.org Reply-To: Nick Hibma To: Warner Losh Cc: freebsd-arch@FreeBSD.org, arch@FreeBSD.org Subject: Re: gensetdefs using sh(1),sed(1),grep(1) and awk(1) In-Reply-To: <200012200829.BAA07311@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've written the initial perl version of the, then, .m -> .[ch] script for newbus in perl, because it was available and did the job better more easily than a combination of various other tools. The biggest problem you will find is that the Perl script makes an effort at making the output readable (figuring out the indent used, whitespace correction if possible, format_line that splits a long line over multiple lines) and has some reasonable error checking. You won't be able to do that in a shell script. I don't think it is impossible to rewrite it, but anyone suggesting that it should be, should come up with the converted script. Nick > In message <20001220002334.B41741@dragon.nuxi.com> "David O'Brien" writes: > : On Wed, Dec 20, 2000 at 01:10:21AM -0700, Warner Losh wrote: > : > Agreed. perl is required to build the kernel. > : > : A true mistake that needs to be undone. > > kobj will likely never be rewritten in sh. So until someone writes > the .m -> .[ch] conversion program, we're stuck with perl. kobj isn't > going away any time soon... > > I don't see what the big deal is in requiring perl is anyway. What > makes it different than awk or sh or sed? Sure, it postdates them, > but all these are in the base system. Why not use the best, fastest > tool for the job? > > Warner > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message > -- Qube Software, Ltd. Private: n_hibma@qubesoft.com n_hibma@webweaving.org n_hibma@freebsd.org http://www.qubesoft.com/ http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message