From: David Shakaryan Date: Sat, 17 Jun 2006 03:58:28 +0000 (+0000) Subject: scripts/portdupe - ignores CVS dirs, uses category list, thanks to tcort for helping X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=aaca1ee2d7a3e138a8d53eed365c489c512213fa;p=~andy%2Fsunrise scripts/portdupe - ignores CVS dirs, uses category list, thanks to tcort for helping svn path=/sunrise/; revision=90 --- diff --git a/scripts/portdupe b/scripts/portdupe index 35e0a5679..98f8051c6 100755 --- a/scripts/portdupe +++ b/scripts/portdupe @@ -4,7 +4,7 @@ # Distributed under the terms of the GNU General Public License v2 # Change portage tree directory if you have it elsewhere. -PORTDIR="/usr/portage/" +PORTDIR="/usr/portage" # If an argument is present, use it as the overlay directory. if [ $1 ]; then @@ -12,8 +12,8 @@ if [ $1 ]; then fi # Checking, displaying, etc. -for PACKAGE in *-*/*; do - if [ -d ${PORTDIR}/${PACKAGE} ]; then +for PACKAGE in */*; do + if [[ -d ${PORTDIR}/${PACKAGE} ]] && [[ $(basename ${PACKAGE}) != "CVS" ]] && echo ${PACKAGE} | grep -qv ${PORTDIR}/profiles/categories; then # Reset versions from last package checked. PORTPACK_VERS="" OVERPACK_VERS=""