commit: e93b26313e0a61fb077f510cfcd1f03ef56e5e0f
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 5 19:04:10 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Apr 5 19:04:10 2015 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=e93b2631
[Documentation] Use keywords from main tree.
Documentation/maintainers/bump-from-set.sh | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/Documentation/maintainers/bump-from-set.sh
b/Documentation/maintainers/bump-from-set.sh
index 65c2e5b..a9b266d 100755
--- a/Documentation/maintainers/bump-from-set.sh
+++ b/Documentation/maintainers/bump-from-set.sh
@@ -2,7 +2,6 @@
# requires app-portage/portage-utils and app-portage/gentoolkit-dev
-: ${KEYWORDS:="~amd64"}
: ${PORTDIR:="$(pwd)"}
get_package_list_from_set() {
@@ -13,6 +12,13 @@ get_package_list_from_set() {
done
}
+get_main_tree_keyword() {
+ local portdir="$(portageq portdir)"
+ local cp="${1}"
+
+ echo $(sed -ne 's/^KEYWORDS="\(.*\)"/\1/p' "$(ls
${portdir}/${cp}/*.ebuild | sort | tail -n 1)")
+}
+
help() {
echo Simple set-based version bumper.
echo
@@ -46,8 +52,8 @@ fi
packages=$(get_package_list_from_set ${SETNAME})
-for package in ${packages} ; do
- pushd "${PORTDIR}/${package}" > /dev/null
+for cp in ${packages} ; do
+ pushd "${PORTDIR}/${cp}" > /dev/null
pn=$(basename $(pwd))
source=${pn}-${SOURCEVERSION}.ebuild
@@ -57,7 +63,7 @@ for package in ${packages} ; do
ekeyword ^all ${destination} > /dev/null
if [[ ${destination} != *9999* ]] ; then
- ekeyword ${KEYWORDS} ${destination} > /dev/null
+ ekeyword $(get_main_tree_keyword ${cp}) ${destination} >
/dev/null
fi
repoman manifest