done
}
-er() {
+_echangelog() {
[[ ! -e ChangeLog ]] \
&& echo "No ChangeLog" \
&& return 1
echangelog "$@" || return 1
+}
+er() {
+ _echangelog "$@" || return 1
repoman commit -m "$@" || return 1
}
+ec() {
+ _echangelog "$@" || return 1
+ cvs commit -m "$@" || return 1
+}
+
att() {
declare url=$1 tmp=$(mktemp) filename || return 1
[[ $url == */* ]] || url="http://bugs.gentoo.org/attachment.cgi?id=$url"
local cat=$(basename $(dirname $(pwd)))
local pkg=${1%.ebuild}
local ebuild=${pkg}.ebuild
- local cc=$(arch_emails ${ebuild} | sed -r -e 's:([^ ]*-fbsd|mips)@[^ ]*::g')
+ local cc=$(arch_emails ${ebuild} | sed -r -e 's:([^ ]*-[^ ]*|mips)@[^ ]*::g')
if [[ -z ${cc} ]] ; then
echo "Unable to read ebuild '${ebuild}'"
return 1