commit: bb51963e6876cd3be95e938b867e1cf197138fc9
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 26 16:59:26 2014 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Sep 26 16:59:26 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=bb51963e
[Documentation/maintainers] Simplify set reading function.
---
Documentation/maintainers/bump-from-set.sh | 6 +-----
Documentation/maintainers/drop-from-set.sh | 3 ---
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/Documentation/maintainers/bump-from-set.sh
b/Documentation/maintainers/bump-from-set.sh
index 8758a5c..0745930 100755
--- a/Documentation/maintainers/bump-from-set.sh
+++ b/Documentation/maintainers/bump-from-set.sh
@@ -9,11 +9,7 @@ get_package_list_from_set() {
local SET="${1}"
- IFS=$'\n'
- for entry in $(cat "${PORTDIR}/sets/${SET}") ; do
- if [[ ${entry} == \#* || ${entry} == @* ]] ; then
- continue
- fi
+ for entry in $(grep -v ^[#@] "${PORTDIR}/sets/${SET}") ; do
echo $(qatom ${entry} | cut -d " " -f 1-2 | tr " " "/")
done
diff --git a/Documentation/maintainers/drop-from-set.sh
b/Documentation/maintainers/drop-from-set.sh
index 5645c78..3267811 100755
--- a/Documentation/maintainers/drop-from-set.sh
+++ b/Documentation/maintainers/drop-from-set.sh
@@ -9,9 +9,6 @@ get_package_list_from_set() {
local SET="${1}"
for entry in $(grep -v ^[#@] "${PORTDIR}/sets/${SET}") ; do
- if [[ ${entry} == \#* || ${entry} == @* ]] ; then
- continue
- fi
echo $(qatom ${entry} | cut -d " " -f 1-2 | tr " " "/")
done