Date: Wed, 20 Dec 2000 10:28:44 +0000 (GMT) From: Nick Hibma <n_hibma@calcaphon.com> To: Warner Losh <imp@village.org> Cc: freebsd-arch@FreeBSD.org, arch@FreeBSD.org Subject: Re: gensetdefs using sh(1),sed(1),grep(1) and awk(1) Message-ID: <Pine.BSF.4.20.0012200944580.58989-100000@henny.webweaving.org> In-Reply-To: <200012200829.BAA07311@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0012200944580.58989-100000>