From 85c8a7f9ebd99cfdd37e326fc275749cb533e0a9 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 31 May 2009 17:22:02 +0200 Subject: added script to show outdatet ebuild you have to run this script in the root of the overlay with $ ./bin/show_outdated_ebuilds you search for packages that are in the overlay but not in /usr/portage with $ ./bin/show_outdated_ebuilds /path_to_some_other_overlay you search for packages that are not in /path_to_some_other_overlay TODO: add a ignore list for this script --- bin/show_outdated_ebuilds | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 bin/show_outdated_ebuilds (limited to 'bin') diff --git a/bin/show_outdated_ebuilds b/bin/show_outdated_ebuilds new file mode 100755 index 000000000..e33146b20 --- /dev/null +++ b/bin/show_outdated_ebuilds @@ -0,0 +1,21 @@ +#!/bin/bash + +SOURCE_DIR=$1 + +if [[ ! -d ${SOURCE_DIR} ]]; then + SOURCE_DIR=/usr/portage +fi + +echo SOURCE_DIR=${SOURCE_DIR} + +for EBUILD in $(find . -name "*.ebuild" -a -not -path "./main_tree*"); do + if [[ ! -f ${SOURCE_DIR}/${EBUILD} ]]; then + EBUILDS_NOT_IN_SOURCE="${EBUILDS_NOT_IN_SOURCE} ${EBUILD}" + fi +done + + +EBUILDS_NOT_IN_SOURCE="$(tr ' ' '\n' <<< "${EBUILDS_NOT_IN_SOURCE}" | sort -u)" + +echo the following ebuild are not in ${SOURCE_DIR} +echo -e "${EBUILDS_NOT_IN_SOURCE}" -- cgit v1.2.3-18-g5258