]> Pileus Git - ~andy/sunrise/commitdiff
Find PORTDIR automagically
authorJakub Moc <jakub@gentoo.org>
Thu, 8 Feb 2007 09:39:26 +0000 (09:39 +0000)
committerJakub Moc <jakub@gentoo.org>
Thu, 8 Feb 2007 09:39:26 +0000 (09:39 +0000)
svn path=/sunrise/; revision=2962

scripts/portdupe

index 697c3fc37cc4f7c0ed3dc68b4f52b4054725c968..fd03f84383bf653fda2c48a608628c32fa12aebf 100755 (executable)
@@ -3,8 +3,7 @@
 # Copyright 2006 David Shakaryan <omp@gentoo.org>
 # Distributed under the terms of the GNU General Public License v2
 
-# Change portage tree directory if you have it elsewhere.
-PORTDIR="/usr/portage"
+PORTDIR="$(portageq envvar PORTDIR)"
 
 # If an argument is present, use it as the overlay directory.
 if [ $1 ]; then