alias ebuild-sync='rsync -av ./ /usr/portage/${PWD#/usr/local/src/gentoo-x86/} --exclude ChangeLog --exclude CVS --exclude metadata.xml --delete'
alias ebuild-emerge='sudo emerge -1av $(echo ${PWD} | awk -F/ "{printf \"%s/%s\", \$(NF-1), \$(NF)}")'
+alias ekeyword='ekeyword -v -q'
cvs_gentoo_url() {
_cvs_gentoo_url() {
# running in a category rather than package
cat="/"
fi
- [[ -z $* ]] && set -- arm m68k s390 sh
+ [[ -z $* ]] && set -- m68k s390 sh
for k in "$@" ; do
- local list="$(grep "^KEYWORDS=.*~${k}\>.*[^~]x86" *${cat}*d -l)"
+ local list="$(grep "^[[:space:]]*KEYWORDS=.*~${k}\>.*[^~]x86" *${cat}*d -l)"
[[ -z ${list} ]] && continue
- sed -i "1s:.*:# Copyright 1999-$(date +%Y) Gentoo Foundation:" ${list}
ekeyword ${k} ${list}
done
}