1 |
commit: 474a120b9b011a2b0d78b603947ce644ddbe0a89 |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 30 20:21:33 2016 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 20:28:03 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=474a120b |
7 |
|
8 |
Documentation: Update find unused patches script |
9 |
|
10 |
Documentation/maintainers/remove_unwanted_patches.sh | 9 +++++---- |
11 |
1 file changed, 5 insertions(+), 4 deletions(-) |
12 |
|
13 |
diff --git a/Documentation/maintainers/remove_unwanted_patches.sh b/Documentation/maintainers/remove_unwanted_patches.sh |
14 |
index fe0dc5f..34ed762 100755 |
15 |
--- a/Documentation/maintainers/remove_unwanted_patches.sh |
16 |
+++ b/Documentation/maintainers/remove_unwanted_patches.sh |
17 |
@@ -1,12 +1,13 @@ |
18 |
#!/bin/bash |
19 |
TMP="/tmp/" |
20 |
+CATEGORY="kde-apps" |
21 |
# we also assume that we are run from the directory where we want to remove patches eg. directory where are categories. |
22 |
-find -mindepth 2 -maxdepth 3 -type d -name files -print | sort -u |sed -e "s:/files::g" -e "s:\./::g" |grep kde-base > ${TMP}/packages-with-patches.txt |
23 |
+find -mindepth 2 -maxdepth 3 -type d -name files -print | sort -u |sed -e "s:/files::g" -e "s:\./::g" |grep ${CATEGORY} > ${TMP}/packages-with-patches.txt |
24 |
EBUILD_BASEDIRS="`cat ${TMP}/packages-with-patches.txt`" |
25 |
for EBBD in ${EBUILD_BASEDIRS}; do |
26 |
pushd $EBBD >> /dev/null |
27 |
- # now we are in ebuild directory (eg. kde-base/kdelibs) |
28 |
- find ./files/ -type f |grep -v "CVS/" |sort -u |sed -e "s:\./files/::g" > ${TMP}/patches-per-package.txt # d. generated on the fly per package. |
29 |
+ # now we are in ebuild directory (eg. kde-apps/dolphin) |
30 |
+ find ./files/ -type f |sort -u |sed -e "s:\./files/::g" > ${TMP}/patches-per-package.txt # d. generated on the fly per package. |
31 |
PATCHES="`cat ${TMP}/patches-per-package.txt`" |
32 |
for PATCH in ${PATCHES}; do |
33 |
PATCH_IN_USE="false" |
34 |
@@ -31,7 +32,7 @@ for EBBD in ${EBUILD_BASEDIRS}; do |
35 |
done |
36 |
if [[ ${PATCH_IN_USE} == "false" ]]; then |
37 |
# for now just write out. |
38 |
- echo "NOT IN USE!: \"${EBBD}/files/${PATCH}\"" >> ${TMP}/cleaner-output.txt |
39 |
+ echo "NOT IN USE!: \"${EBBD}/files/${PATCH}\"" >> ${TMP}/${CATEGORY}-unused-patches.txt |
40 |
fi |
41 |
done |
42 |
popd >> /dev/null |