]> Pileus Git - ~andy/sunrise/blob - scripts/obsolete/ovl-ebuilds.sh
dev-libs/qextserialport: Fix qt deps, EAPI bump
[~andy/sunrise] / scripts / obsolete / ovl-ebuilds.sh
1 #!/bin/bash
2 #
3 # Copyright 2006 Piotr JaroszyƄski <peper@gentoo.org>
4 # Distributed under the terms of the GNU General Public License v2
5
6 source /etc/make.globals
7 source /etc/make.conf
8
9 echo "This will take a while depending on no. of installed packages."
10 echo "Packages installed not from portage dir:"
11 echo  
12 while read EBUILD_PATH; do
13         OVERLAY=${EBUILD_PATH%/*/*/*}
14         CATEGORY=$(basename ${EBUILD_PATH%/*/*})
15         PKG=$(basename ${EBUILD_PATH})
16
17         if [[ ${OVERLAY} != ${LASTOVERLAY} ]]; then
18                 echo "${OVERLAY}:" 
19                 LASTOVERLAY=${OVERLAY}
20         fi
21
22         echo -e "\t${CATEGORY}/${PKG}"
23 done < <(bzcat /var/db/pkg/*/*/environment.bz2 | grep "EBUILD=/" | grep -v ${PORTDIR} | sort \
24 | sed -e 's/EBUILD=//' -e 's/.ebuild//')
25
26 unset OVERLAY LASTOVERLAY CATEGORY PKG