From: Doug Goldstein Subject: Re: [PATCH v2] get_maintainer.pl: Teach brace expansion Date: Mon, 9 Jan 2017 09:36:59 -0600 Message-ID: <2e69618f-5aba-beee-647a-3e3ed144c7f1@cardoe.com> References: <20170109152232.13012-1-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7043550229636599257==" Return-path: Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQc0Q-0005q2-LL for xen-devel@lists.xenproject.org; Mon, 09 Jan 2017 15:37:06 +0000 Received: by mail-io0-f195.google.com with SMTP id c80so6994508iod.1 for ; Mon, 09 Jan 2017 07:37:04 -0800 (PST) In-Reply-To: <20170109152232.13012-1-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Anthony PERARD , xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Jan Beulich List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============7043550229636599257== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cP9SCfCj9LsNfkRmwpStoqR8rgA0agrjd" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cP9SCfCj9LsNfkRmwpStoqR8rgA0agrjd Content-Type: multipart/mixed; boundary="FIcH6X4F1o1mqw744JjD8VOVpmOVKl0hB"; protected-headers="v1" From: Doug Goldstein To: Anthony PERARD , xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Jan Beulich Message-ID: <2e69618f-5aba-beee-647a-3e3ed144c7f1@cardoe.com> Subject: Re: [Xen-devel] [PATCH v2] get_maintainer.pl: Teach brace expansion References: <20170109152232.13012-1-anthony.perard@citrix.com> In-Reply-To: <20170109152232.13012-1-anthony.perard@citrix.com> --FIcH6X4F1o1mqw744JjD8VOVpmOVKl0hB Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 1/9/17 9:22 AM, Anthony PERARD wrote: > Simpler non-nested brace expansion. >=20 > Some entries in the MAINTAINER are not understood by the script, the > ones that contain {,}. This patch fixes it. >=20 > 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. >=20 > It is done by using two different regex, the first one will take care o= f > 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 '(|)'. >=20 > With the patch, the right maintainers are displayed, instead of "THE > REST" maintainers, when using the following command for e.g. > $ ./scripts/get_maintainer.pl -f docs/misc/kconfig.txt >=20 > The patch also get rid of the warnings, with recent perl: > Unescaped left brace in regex is deprecated, passed through in regex; m= arked by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at = =2E/scripts/get_maintainer.pl line 731. >=20 > Signed-off-by: Anthony PERARD Tested-by: Doug Goldstein I won't pretend to say I know Perl so I didn't read the changes but I did test them and all is well and it gets rid of warnings on my machine. --=20 Doug Goldstein --FIcH6X4F1o1mqw744JjD8VOVpmOVKl0hB-- --cP9SCfCj9LsNfkRmwpStoqR8rgA0agrjd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0 iQJ8BAEBCgBmBQJYc64dXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNTM5MEQ2RTNFMTkyNzlCNzVDMzIwOTVB MkJDMDNEQzg3RUQxQkQ0AAoJEKK8A9yH7RvUVmMP/138L4ztCZQf0VnxJ5FAzIVB DzPmeOnwbBf0sbUTh2tnqExbbMlZDl+jFRMdNTNy/SW/HB9HLQMJoWY3V9mc5f2c kfp6UTN//cQOFHGRlHTFEnabZ5d4rom8r0OnqwzvVpBHbVWVbVNxmgkQV1caF1lg 6MdnSviYG4j6IepUgFbmwwztjm4x0cfiAhX+sLnCsSyOBhW8e4sR+vokg0LIyUez 9NfUroFDTUy0Dmfdni9iSnbCMJV7Sr4zDFJ/tIkfDQNARFuSX47+qf7+udfI2GqS 9ijl3ENVXkFNSabSlQZdW+h0B19weGqVCq9CfHDGO+FHBjx2dndSeePwxAZXnYrD e4A3FQkxtbHZeT+Se5qtY9puLnrsP0uEa/2NdhbqMtKi7Uql/B2DYTOjAEWl3wv5 ooUSBV7TrnkMrrl73SXtV0fSwgE1iQwoF6rnaITvLCZyZf9TjCfWUQaXroJQ6Zku C/UlvF0pzkkuGLK+Z2XEE5kVxR9ppRuMnYjyDvexcEZualGWtmK7TWTqVh+Ycyqn hu/oqoFIgKgy0v8w3XZpZ46i6HIEKxIT2gBwgW4G88pTxV2Uze8HB0c74wosPacl +v/wytuK1wIQzWje2DaOuMU7nNNf5S6U8RtcuwN/gTkDxhKR8ZS/0sIHB1o5dCyo x2MfdGuKIF7LILlimeyi =e0II -----END PGP SIGNATURE----- --cP9SCfCj9LsNfkRmwpStoqR8rgA0agrjd-- --===============7043550229636599257== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============7043550229636599257==--