]> git.wh0rd.org Git - home.git/commitdiff
r: handle fancier OWNERS files
authorMike Frysinger <vapier@gentoo.org>
Wed, 16 Apr 2014 22:04:10 +0000 (18:04 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 16 Apr 2014 22:04:10 +0000 (18:04 -0400)
.bin/r

diff --git a/.bin/r b/.bin/r
index 47a07ad80666834aeabb5f97108324ec7c60276e..31377ef2866dded8d9445aff59aa04c96c4df276 100755 (executable)
--- a/.bin/r
+++ b/.bin/r
@@ -61,7 +61,12 @@ process_reviewers() {
        for r in ${*//,/ } ; do
                case ${r} in
                *OWNERS)
-                       local owners=$(awk -F'@' '{list = list "," $1} END {print substr(list, 2)}' "${r}")
+                       local owners=$(
+                               awk -F'@' '
+                                       ($2 == "chromium.org" || $2 == "google.com") {list = list "," $1}
+                                       END {print substr(list, 2)}
+                               ' "${r}"
+                       )
                        if [[ -z ${owners} ]] ; then
                                err "cannot find OWNERS list"
                        else