[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] get_maintainer.pl: Teach brace expansion
On Fri, Jun 24, 2016 at 12:09:53PM +0100, George Dunlap wrote: > On Wed, Jun 22, 2016 at 6:28 PM, Anthony PERARD > <anthony.perard@xxxxxxxxxx> wrote: > > This only implement a simpler non-nested brace expansion. > > > > This will convert brace expansion style use in MAINTAINER into a regex > > that get_maintainer.pl can use to match a path again a maintainer > > section. > > > > It is done by using two different regex, the first one will take care of > > converting ',' inside '{}' to a '|', one by one, as long as there is at > > least two commas. The second regex will do the final convertion of '{,}' > > to '(|)'. > > Can you give some examples of the sorts of MAINTAINER entries this > would allow (and maybe one that you intend to implement once this is > accepted)? With this patch, every entry of the current MAINTAINER file would work! The one below for example would return the right sections/maintainers. $ ./scripts/get_maintainer.pl --sections -f xen/common/kexec.c Also, for every invocation of the script, I've got this message (x3) (without the patch): Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^xen/common/{ <-- HERE kexec,kimage}\.c/ at ./scripts/get_maintainer.pl line 731. One example I've tried the patch with, by adding a bogus entry: xen/common/{kexec,kimage,extra,patterns}.{c,h,S} By the way, --sections does not print the original pattern, but it print the pattern converted by to globing from the regex. -- Anthony PERARD _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |