diff options
-rwxr-xr-x | ckovl.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ckovl.sh b/ckovl.sh new file mode 100755 index 0000000..66c8514 --- /dev/null +++ b/ckovl.sh @@ -0,0 +1,21 @@ +#! /bin/sh +# ckovl.sh - checks overlay for manifest/digest changes + +source /sbin/functions.sh + +export PORTDIR_OVERLAY="${PORTDIR_OVERLAY:-/home/trapni/projects/gentoo/trapni/overlay}" + +for CATEGORY in $(find . -mindepth 1 -maxdepth 1 -type d -name '*-*' | sed 's,./,,'); do + pushd ${CATEGORY} &>/dev/null + for PACKAGE in $(find . -mindepth 1 -maxdepth 1 -type d | sed 's,./,,' | grep -v .svn); do + einfo " Checking ${CATEGORY}/${PACKAGE} ..." + + pushd ${PACKAGE} &>/dev/null + for EBUILD in $(find . -maxdepth 1 -type f -name '*.ebuild' | sed 's,./,,'); do + rm -f Manifest files/digest-* + ebuild ${EBUILD} digest + done + popd &>/dev/null + done + popd &>/dev/null +done |