Gentoo Archives: gentoo-commits

From: "Andreas K. Huettel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: Documentation/maintainers/
Date: Wed, 27 Apr 2011 15:48:22
Message-Id: 6d3ccf3ecb265b4afa17666aa2dd27c02ed101bb.dilfridge@gentoo
1 commit: 6d3ccf3ecb265b4afa17666aa2dd27c02ed101bb
2 Author: Andreas K. Huettel <andreas.huettel <AT> physik <DOT> uni-r <DOT> de>
3 AuthorDate: Wed Apr 27 15:47:22 2011 +0000
4 Commit: Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 27 15:47:22 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=6d3ccf3e
7
8 [maintainers] added helper script
9
10 ---
11 Documentation/maintainers/gen-keywordlist | 14 ++++++++++++++
12 1 files changed, 14 insertions(+), 0 deletions(-)
13
14 diff --git a/Documentation/maintainers/gen-keywordlist b/Documentation/maintainers/gen-keywordlist
15 new file mode 100755
16 index 0000000..3a8175f
17 --- /dev/null
18 +++ b/Documentation/maintainers/gen-keywordlist
19 @@ -0,0 +1,14 @@
20 +for pkg in $(cat $1 |grep -v "^#"|sed -e 's:^=::'); do
21 +
22 + category=$(echo $pkg|sed -e 's:/.*$::')
23 + p=$(echo $pkg|sed -e 's:.*/::')
24 +
25 + ebuild=$(find /usr/portage/${category} -name ${p}.ebuild)
26 +
27 + # echo Cat ${category}, P ${p}, ebuild ${ebuild}
28 +
29 + kw="$(grep KEYWORDS ${ebuild} | sed -e 's:^.*KEYWORDS="::' -e 's:".*$::')"
30 +
31 + echo "$pkg $kw"
32 +
33 +done