diff options
Diffstat (limited to 'scripts/obsolete/ovl-ebuilds.sh')
-rwxr-xr-x | scripts/obsolete/ovl-ebuilds.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/obsolete/ovl-ebuilds.sh b/scripts/obsolete/ovl-ebuilds.sh new file mode 100755 index 000000000..24cfae768 --- /dev/null +++ b/scripts/obsolete/ovl-ebuilds.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# +# Copyright 2006 Piotr JaroszyĆski <peper@gentoo.org> +# Distributed under the terms of the GNU General Public License v2 + +source /etc/make.globals +source /etc/make.conf + +echo "This will take a while depending on no. of installed packages." +echo "Packages installed not from portage dir:" +echo +while read EBUILD_PATH; do + OVERLAY=${EBUILD_PATH%/*/*/*} + CATEGORY=$(basename ${EBUILD_PATH%/*/*}) + PKG=$(basename ${EBUILD_PATH}) + + if [[ ${OVERLAY} != ${LASTOVERLAY} ]]; then + echo "${OVERLAY}:" + LASTOVERLAY=${OVERLAY} + fi + + echo -e "\t${CATEGORY}/${PKG}" +done < <(bzcat /var/db/pkg/*/*/environment.bz2 | grep "EBUILD=/" | grep -v ${PORTDIR} | sort \ +| sed -e 's/EBUILD=//' -e 's/.ebuild//') + +unset OVERLAY LASTOVERLAY CATEGORY PKG |