summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2014-02-13 01:18:34 +1100
committerMichael Palimaka <kensington@gentoo.org>2014-02-13 01:18:34 +1100
commitce594b4897d2f6b89d6faa210686d884a78867b2 (patch)
tree338c3b4a9b02556e413b2d217a5a86f51af38b93
parent74165734a50349abe6c0c76c1919bf01f53f4ac0 (diff)
downloadkde-ce594b4897d2f6b89d6faa210686d884a78867b2.tar.gz
kde-ce594b4897d2f6b89d6faa210686d884a78867b2.tar.bz2
kde-ce594b4897d2f6b89d6faa210686d884a78867b2.zip
[Documentation/maintainers] Add to support non-kde-base categories.
-rwxr-xr-xDocumentation/maintainers/bump_new_revision.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/Documentation/maintainers/bump_new_revision.sh b/Documentation/maintainers/bump_new_revision.sh
index 91586221e44..bdbf257f35a 100755
--- a/Documentation/maintainers/bump_new_revision.sh
+++ b/Documentation/maintainers/bump_new_revision.sh
@@ -19,7 +19,7 @@ get_packages_from_slot() {
# version.ebuild
sed -e '/^[@#]/d' \
-e '/^$/d' \
- -e '\@kde-base/@!d' \
+ -e "\@${CATEGORY}/@!d" \
-e 's/^>=//g' \
-e 's/^~//g' \
-e 's/^<//g' \
@@ -45,7 +45,7 @@ add_new_sloted_version() {
cp ${SLOTFILE} ${NEWSLOTFILE}
# fix versioning
sed -r -i \
- -e "\@kde-base/@{s:~:>=:;s:-(9999|4\..\.50)$:-${PREVVER}.50:};/@kde/s:${SLOT}:${BUMP_VERSION}:" \
+ -e "\@${CATEGORY}/@{s:~:>=:;s:-(9999|4\..\.50)$:-${PREVVER}.50:};/@kde/s:${SLOT}:${BUMP_VERSION}:" \
${NEWSLOTFILE} || die "unable to update slotfile versioning"
# add to git
git add ${NEWSLOTFILE}
@@ -54,9 +54,9 @@ add_new_sloted_version() {
# write ebuild directories in which i will work to file.
find_packagedirs_for_removal() {
- find ${PORTDIR_BUMPING}/kde-base/ -name \*${VERSION}\*.ebuild -print |while read FILE; do
- echo ${FILE} |sed -e "s:${PORTDIR_BUMPING}/kde-base/::" \
- |awk -F'/' '{print "kde-base/"$1}' \
+ find ${PORTDIR_BUMPING}/${CATEGORY}/ -name \*${VERSION}\*.ebuild -print |while read FILE; do
+ echo ${FILE} |sed -e "s:${PORTDIR_BUMPING}/${CATEGORY}/::" \
+ |awk -F'/' '{print "'${CATEGORY}'/"$1}' \
>> ${TMPFILE}
done
}
@@ -203,7 +203,8 @@ BUMP_VERSION=
SET=
DIR=
OUTPUT_DIR=
-while getopts a:s:v:b:l:p:o: arg ; do
+CATEGORY="kde-base"
+while getopts a:s:v:b:l:p:o:c: arg ; do
case ${arg} in
a) OPERATION=${OPTARG} ;;
s) SLOT=${OPTARG} ;;
@@ -212,6 +213,7 @@ while getopts a:s:v:b:l:p:o: arg ; do
l) SET="${OPTARG}" ;;
p) DIR="${OPTARG}" ;;
o) OUTPUT_DIR="${OPTARG}" ;;
+ c) CATEGORY="${OPTARG}" ;;
*) help ;;
?) help ;;
esac
@@ -347,7 +349,7 @@ case ${OPERATION} in
# then start going per each dir
# cvs up, move the ebuild, its patches if needed, run echangelog, run keywords check, manifest
#_cvsupdate "${MAINTREE}"
- find ./kde-base/ -mindepth 1 -maxdepth 1 -type d |sed -e "s:./::" | sort |while read dir; do
+ find ./${CATEGORY}/ -mindepth 1 -maxdepth 1 -type d |sed -e "s:./::" | sort |while read dir; do
# we also have to check if directory contains our version if not, we dont copy it
pushd "${OVERLAY}/${dir}" &> /dev/null
if [[ `find ./ -name \*.ebuild|grep ${VERSION} |wc -l` -gt 0 ]]; then