From: | Mike Frysinger <vapier@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Cc: | justin <jlec@g.o> | ||
Subject: | Re: [gentoo-dev] (New) sunrise-commit -- a commit helper script for Gentoo devs | ||
Date: | Fri, 07 Jan 2011 17:35:14 | ||
Message-Id: | 201101071313.48120.vapier@gentoo.org | ||
In Reply to: | Re: [gentoo-dev] (New) sunrise-commit -- a commit helper script for Gentoo devs by justin |
1 | On Friday, January 07, 2011 06:43:30 justin wrote: |
2 | > > local cc=$(arch_emails ${ebuild} | sed -r -e 's:([^ ]*-[^ |
3 | > |
4 | > could you please post the arch_emails function? |
5 | |
6 | arch_emails() { |
7 | local ret |
8 | if [[ $@ == *.ebuild* ]] ; then |
9 | local e keys |
10 | for e in "$@" ; do |
11 | keys=$(sed -n '/^[[:space:]]*KEYWORD/{s:.*=::;s:"::g;p}' ${e}) |
12 | for a in ${keys} ; do |
13 | [[ ${a} != ~* ]] && continue |
14 | ret="${ret} ${a}" |
15 | done |
16 | done |
17 | else |
18 | ret="$*" |
19 | fi |
20 | printf '%s@g.o ' ${ret//\~} |
21 | echo |
22 | } |
23 | -mike |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |