diff options
author | Benda Xu <heroxbd@gentoo.org> | 2023-08-16 22:45:41 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2023-08-16 22:51:37 +0800 |
commit | b82b80accaab5a2cc11ed8cfcecd9d69e4b1cb06 (patch) | |
tree | 612b66020a5dba67c394bc50b40ceae89ce38a62 | |
parent | clear up outdated repository after 7 years. (diff) | |
download | heroxbd-b82b80accaab5a2cc11ed8cfcecd9d69e4b1cb06.tar.gz heroxbd-b82b80accaab5a2cc11ed8cfcecd9d69e4b1cb06.tar.bz2 heroxbd-b82b80accaab5a2cc11ed8cfcecd9d69e4b1cb06.zip |
test-keyword.sh for aid keywording a dependency tree.
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
-rwxr-xr-x | test-keyword.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test-keyword.sh b/test-keyword.sh new file mode 100755 index 0000000..bdc63c8 --- /dev/null +++ b/test-keyword.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env + +EPREFIX=${EPREFIX:=${HOME}/Gentoo} + +ack="${EPREFIX}/etc/portage/package.accept_keywords" + +sed "/### START keyword for $1/../### END keyword for $1/d" -i ${ack} + +echo "### START keyword for $1" >> ${ack} + +while ! emerge -pv $1; do + emerge -pv $1 | sed -r -n '/masked by: missing keyword/{s,^- (.*/.*)-[[:digit:]].*,\1 **,p;q}' | tee -a ${ack} +done + +echo "### END keyword for $1" >> ${ack} |