1 |
commit: bb51963e6876cd3be95e938b867e1cf197138fc9 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 26 16:59:26 2014 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 26 16:59:26 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=bb51963e |
7 |
|
8 |
[Documentation/maintainers] Simplify set reading function. |
9 |
|
10 |
--- |
11 |
Documentation/maintainers/bump-from-set.sh | 6 +----- |
12 |
Documentation/maintainers/drop-from-set.sh | 3 --- |
13 |
2 files changed, 1 insertion(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/Documentation/maintainers/bump-from-set.sh b/Documentation/maintainers/bump-from-set.sh |
16 |
index 8758a5c..0745930 100755 |
17 |
--- a/Documentation/maintainers/bump-from-set.sh |
18 |
+++ b/Documentation/maintainers/bump-from-set.sh |
19 |
@@ -9,11 +9,7 @@ get_package_list_from_set() { |
20 |
|
21 |
local SET="${1}" |
22 |
|
23 |
- IFS=$'\n' |
24 |
- for entry in $(cat "${PORTDIR}/sets/${SET}") ; do |
25 |
- if [[ ${entry} == \#* || ${entry} == @* ]] ; then |
26 |
- continue |
27 |
- fi |
28 |
+ for entry in $(grep -v ^[#@] "${PORTDIR}/sets/${SET}") ; do |
29 |
echo $(qatom ${entry} | cut -d " " -f 1-2 | tr " " "/") |
30 |
done |
31 |
|
32 |
|
33 |
diff --git a/Documentation/maintainers/drop-from-set.sh b/Documentation/maintainers/drop-from-set.sh |
34 |
index 5645c78..3267811 100755 |
35 |
--- a/Documentation/maintainers/drop-from-set.sh |
36 |
+++ b/Documentation/maintainers/drop-from-set.sh |
37 |
@@ -9,9 +9,6 @@ get_package_list_from_set() { |
38 |
local SET="${1}" |
39 |
|
40 |
for entry in $(grep -v ^[#@] "${PORTDIR}/sets/${SET}") ; do |
41 |
- if [[ ${entry} == \#* || ${entry} == @* ]] ; then |
42 |
- continue |
43 |
- fi |
44 |
echo $(qatom ${entry} | cut -d " " -f 1-2 | tr " " "/") |
45 |
done |