commit: d8c4d10b47e16995b677fcc015dd65ddb3139623
Author: Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 9 08:58:53 2015 +0000
Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Sun Aug 9 08:58:53 2015 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=d8c4d10b
[Documentation] Update copy-keywords script
- drops obsolete cvs check
- indent
- make ebuild category configurable
Documentation/maintainers/copy-keywords | 68 ++++++++++++---------------------
1 file changed, 25 insertions(+), 43 deletions(-)
diff --git a/Documentation/maintainers/copy-keywords
b/Documentation/maintainers/copy-keywords
index c75ae41..d88b16e 100755
--- a/Documentation/maintainers/copy-keywords
+++ b/Documentation/maintainers/copy-keywords
@@ -1,48 +1,30 @@
#!/bin/bash
-SOURCE=${1:-~/Gentoo/gentoo-x86}
-SOURCEVER=${2:-4.11.2}
+SOURCE=${1:-~/Gentoo/gentoo}
+SOURCEVER=${2:-15.08.0}
DEST=${3:-~/Gentoo/kde}
-DESTVER=${4:-4.12.1}
-
-TESTING=${5:-yes}
-
-for pd in ${SOURCE}/kde-base/* ; do
-
- if [ "`basename ${pd}`x" == 'CVSx' ]; then
-
- true
-
- else
-
- p="`basename $pd`"
- kw=`cat ${pd}/${p}-${SOURCEVER}*ebuild | grep "^KEYWORDS" | head -n 1 |
sed -e 's:^KEYWORDS="::' -e 's:".*$::'`
-
- if [ "${kw}x" == x ]; then
-
- echo "error: $p ebuild not found"
-
- else
-
- if [ -f "${DEST}/kde-base/${p}/${p}-${DESTVER}.ebuild" ]; then
-
- echo "processing $p"
-
- sed -i "${DEST}/kde-base/${p}/${p}-${DESTVER}.ebuild" -e
"/^KEYWORDS/cKEYWORDS=\"${kw}\""
-
- if [ ${TESTING} == yes ]; then
- ekeyword ~all "${DEST}/kde-base/${p}/${p}-${DESTVER}.ebuild"
- fi
-
- else
-
- echo "error: no file ${DEST}/kde-base/${p}/${p}-${DESTVER}.ebuild"
-
- fi
-
- fi
-
- fi
-
+DESTVER=${4:-15.12.0}
+
+CATEGORY=${5:-kde-apps}
+TESTING=${6:-yes}
+
+for pd in ${SOURCE}/${CATEGORY}/* ; do
+ p="`basename $pd`"
+ kw=`cat ${pd}/${p}-${SOURCEVER}*ebuild | grep "^KEYWORDS" | head -n 1 |
sed -e 's:^KEYWORDS="::' -e 's:".*$::'`
+
+ if [ "${kw}x" == x ]; then
+ echo "error: $p ebuild not found"
+ else
+ if [ -f "${DEST}/${CATEGORY}/${p}/${p}-${DESTVER}.ebuild" ]; then
+ echo "processing $p"
+ sed -i "${DEST}/${CATEGORY}/${p}/${p}-${DESTVER}.ebuild" -e
"/^KEYWORDS/cKEYWORDS=\"${kw}\""
+
+ if [ ${TESTING} == yes ]; then
+ ekeyword ~all "${DEST}/${CATEGORY}/${p}/${p}-${DESTVER}.ebuild"
+ fi
+ else
+ echo "error: no file
${DEST}/${CATEGORY}/${p}/${p}-${DESTVER}.ebuild"
+ fi
+ fi
done