From: Charles W. <cwi...@us...> - 2010-09-09 22:26:35
|
On 9/9/2010 4:55 PM, Chris Sutcliffe wrote: > On 9 September 2010 16:38, Charles Wilson wrote: >> Here's how I would do it. (I haven't tested these yet; I'll do that in a >> few hours). > > From the runtime xml file: > > <licence tarname="w32api-%-mingw32-dev.tar" /> > <source tarname="w32api-%-mingw32-src.tar" /> > > will this work when the file format is > w32api-3.15-1-mingw32-dev/src.tar.lzma? Meaning will the '%' match > 3.15-1? Yes, it will. > My assumption was that it needed to match based on the > hyphen. These values are not literal regexes, they are smarter than that. They are field specifiers...and since the RELEASE (and BUILD) field(s) may or may not be present, then a '%' will match the entire group of fields whose position it spans (e.g. all the stuff between NAME and SUBSYS, in this case -- which is VER, REL, and BUILD). > Additionally, is the '.tar' sufficient, or should it be > '.tar.lzma'? That's a very good question; I don't know. I suspect it should be .tar.lzma (or actually .tar.gz in the case of w32api), but many of the existing xml's don't include the compression schema. This is fine for <requires > specifications -- but it might not be so great for tarname attributes! I'd add the .gz in this case, but for the rest of the various xmls...no need to borrow trouble. Right now mingw-get doesn't use the <source> and <licence> entries, so...there's no hurry. -- Chuck |