diff options
| -rwxr-xr-x | Documentation/maintainers/bump_new_revision.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Documentation/maintainers/bump_new_revision.sh b/Documentation/maintainers/bump_new_revision.sh index f9fb50b8350..42fb1938d9d 100755 --- a/Documentation/maintainers/bump_new_revision.sh +++ b/Documentation/maintainers/bump_new_revision.sh @@ -124,17 +124,19 @@ sync_main_keywords_with_overlay() { if [[ -d "${dir}" ]] ; then pushd "${dir}" &> /dev/null # the grep is for removing 3.5 ebuilds from knowledge - if [[ ${3} = intree ]]; then + 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 :] + [[ ${BUMP_VERSION} != *9999 ]] && KEYWORDS="~amd64 ~x86" # want to be here, well ask us :] + fi + if [[ ${BUMP_VERSION} != *9999 ]]; then + [[ -z ${KEYWORDS} ]] && KEYWORDS="~amd64 ~x86" + ekeyword $KEYWORDS ${1} &> /dev/null fi - [[ ${KEYWORDS} = "" ]] && KEYWORDS="~amd64 ~x86" - ekeyword $KEYWORDS ${1} &> /dev/null } # print out help function |
