This is the mail archive of the
mailing list for the Cygwin project.
Re: mknetrel: accept package names with dashes
Christopher Faylor <email@example.com> writes:
> On Mon, Jul 22, 2002 at 07:24:00PM +0200, Jan Nieuwenhuizen wrote:
>>A small extension I made to mknetrel, to make the tetex-* and the
>>cross-* packages: the ver(sion) is something like [0-9]+-[0-9]+
>>at the end; and the base is all except $ver.
> You say "extension" and I say "so long gcc-mingw-3_1-20020516-3".
Yes, of course, I understand that in the absence of a
sane/strict/smart package naming policy, you'll be able to device a
weird package name + version combo that cannot be parsed.
I was quite certain that this small change, because it's not only a
bit simpler and more robust, but also because handles more simple
cases better than the previous code and I needed it, would be a
no-brainer to apply. There must have been something that I missed.
If you really want parse and support that `unconventionally' mingw
example, I can try to send you another patch for it?
$ ./parse foe-2.0-1
$ ./parse foe-bar-2.0-1
$ ./parse gcc-mingw-3_1-20020516-3
$ ./parse "so long gcc-mingw-3_1-20020516-3"
base: <so long gcc>
base: <so long gcc-mingw-3_1>
Jan Nieuwenhuizen <firstname.lastname@example.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org