From: Mike Frysinger Date: Sat, 19 Aug 2017 18:54:42 +0000 (-0400) Subject: gentoo: tweak arch_emails X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=39efb5ff3bf4d9e34ffc4fcb74d4d6191a17149a;p=home.git gentoo: tweak arch_emails --- diff --git a/.profile.d/gentoo.sh b/.profile.d/gentoo.sh index acf0fd3..950260c 100644 --- a/.profile.d/gentoo.sh +++ b/.profile.d/gentoo.sh @@ -45,13 +45,17 @@ arch_emails() { keys=$(sed -n '/^[[:space:]]*KEYWORD/{s:.*=::;s:"::g;p}' ${e}) for a in ${keys} ; do [[ ${a} != ~* ]] && continue - ret="${ret} ${a}" + case ${a} in + *-*) continue ;; + ~arm64|~m68k|~mips|~s390|~sh) continue ;; + ~*) ret="${ret} ${a}" ;; + esac done done else ret="$*" fi - printf '%s@gentoo.org ' ${ret//\~} + printf '%s@gentoo.org,' ${ret//\~} echo } stable_arch_emails() {