diff options
| author | wired <wired@gentoo.org> | 2009-08-29 02:40:28 +0300 |
|---|---|---|
| committer | wired <wired@gentoo.org> | 2009-08-29 02:42:36 +0300 |
| commit | ecfaea6a897706c2e2941756025f9e4b87e42cf1 (patch) | |
| tree | e02620a1535bbc0d08330d0a09124139fb3b9a88 | |
| parent | 663154336cb7b7fed1c4163c1cf6834353452f0e (diff) | |
| download | kde-ecfaea6a897706c2e2941756025f9e4b87e42cf1.tar.gz kde-ecfaea6a897706c2e2941756025f9e4b87e42cf1.tar.bz2 kde-ecfaea6a897706c2e2941756025f9e4b87e42cf1.zip | |
[bump tool] minor keywords fix
| -rwxr-xr-x | Documentation/maintainers/bump_new_revision.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/maintainers/bump_new_revision.sh b/Documentation/maintainers/bump_new_revision.sh index 48cbfeb4f3b..10f86300cbb 100755 --- a/Documentation/maintainers/bump_new_revision.sh +++ b/Documentation/maintainers/bump_new_revision.sh @@ -121,11 +121,14 @@ sync_main_keywords_with_overlay() { ekeyword ^all ${1} &> /dev/null # then apply them back dir="$(portageq portdir)/${2}" - [[ ${3} = intree ]] && sep="tail -n 2 |head -n 1" || sep="tail -n 1" if [[ -d "${dir}" ]] ; then pushd "${dir}" &> /dev/null # the grep is for removing 3.5 ebuilds from knowledge - KEYWORDS="$(find ./ -name \*ebuild |grep -v "\-3.5" | sort | ${sep} | xargs -i grep KEYWORDS {} |sed -e "s:KEYWORDS=::g" -e "s:\"::g")" + if [[ ${3} = intree ]]; then + KEYWORDS="$(find ./ -name \*ebuild |grep -v "\-3.5" | sort | tail -n 2 | head -n 1 | xargs -i grep KEYWORDS {} |sed -e "s:KEYWORDS=::g" -e "s:\"::g")" + else + KEYWORDS="$(find ./ -name \*ebuild |grep -v "\-3.5" | sort | tail -n 1 | xargs -i grep KEYWORDS {} |sed -e "s:KEYWORDS=::g" -e "s:\"::g")" + fi popd &> /dev/null else KEYWORDS="~amd64 ~x86" # want to be here, well ask us :] |
