summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2020-11-28 23:40:02 +0300
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2020-11-29 18:54:37 +0000
commit489fdb2e44dde725175f4828a4ed0871c6d53d44 (patch)
tree443f8f5b9150d3371ab974fc5f0b4a77971ce590
parentf2a7020da6b5d48e832e5be7a02f86f8d7bb16a1 (diff)
downloadtde-packaging-gentoo-489fdb2e44dde725175f4828a4ed0871c6d53d44.tar.gz
tde-packaging-gentoo-489fdb2e44dde725175f4828a4ed0871c6d53d44.zip
Added script for generating a list of packages for /etc/portage/package.accept_keywords
Signed-off-by: ormorph <roma251078@mail.ru>
-rwxr-xr-xDocumentation/scripts/create_list_keywords.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/scripts/create_list_keywords.sh b/Documentation/scripts/create_list_keywords.sh
new file mode 100755
index 00000000..368b6b47
--- /dev/null
+++ b/Documentation/scripts/create_list_keywords.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+##################################################################################################
+# cd PATH/tde-packaging-gentoo
+# Documentation/scripts/create_list_keywords.sh 9999 >/etc/portage/package.accept_keywords/trinity
+##################################################################################################
+
+VERS=$1
+create_list() {
+ local FILE STR ARRAY
+ while read file
+ do
+ FILE=${file//.\//}
+ STR=${FILE%.ebuild}
+ ARRAY=(${STR//\// })
+ echo "~${ARRAY[0]}/${ARRAY[2]} **"
+ done < <(find -type f -name "*-${VERS}.ebuild")
+}
+
+create_list | sort