summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFlorian Fischer <vlooe@web.de>2009-05-31 17:22:02 +0200
committerFlorian Fischer <vlooe@web.de>2009-05-31 17:22:02 +0200
commit85c8a7f9ebd99cfdd37e326fc275749cb533e0a9 (patch)
tree07df88d8861fd55fdcf95e2518a9dc129d331130 /bin
parentMerge branch 'master' of git@github.com:sjnewbury/multilib-overlay (diff)
downloadmultilib-portage-85c8a7f9ebd99cfdd37e326fc275749cb533e0a9.tar.gz
multilib-portage-85c8a7f9ebd99cfdd37e326fc275749cb533e0a9.tar.bz2
multilib-portage-85c8a7f9ebd99cfdd37e326fc275749cb533e0a9.zip
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
Diffstat (limited to 'bin')
-rwxr-xr-xbin/show_outdated_ebuilds21
1 files changed, 21 insertions, 0 deletions
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}"