From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QIPfi-0006bm-LD for garchives@archives.gentoo.org; Fri, 06 May 2011 18:22:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7F4A21C009; Fri, 6 May 2011 18:22:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4C38B1C009 for ; Fri, 6 May 2011 18:22:31 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 565A01B4087 for ; Fri, 6 May 2011 18:22:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 7EFD880505 for ; Fri, 6 May 2011 18:22:29 +0000 (UTC) From: "Christoph Mende" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christoph Mende" Message-ID: <0500eaa203e255a71cb55e6332bf8d6e6eb3a166.angelos@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: filesdir-usage.sh X-VCS-Directories: / X-VCS-Committer: angelos X-VCS-Committer-Name: Christoph Mende X-VCS-Revision: 0500eaa203e255a71cb55e6332bf8d6e6eb3a166 Date: Fri, 6 May 2011 18:22:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 6be1bd3505e9b3fab2fe5420b8da4936 commit: 0500eaa203e255a71cb55e6332bf8d6e6eb3a166 Author: Christoph Mende unkreativ org> AuthorDate: Fri May 6 18:22:15 2011 +0000 Commit: Christoph Mende gentoo org> CommitDate: Fri May 6 18:22:15 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/qa-scripts.gi= t;a=3Dcommit;h=3D0500eaa2 Minor improvements to filesdur-usage.sh Use pushd/popd instead of cd. Don't rely on portdir being in /usr/portage --- filesdir-usage.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/filesdir-usage.sh b/filesdir-usage.sh index 4677277..920b5af 100755 --- a/filesdir-usage.sh +++ b/filesdir-usage.sh @@ -3,11 +3,12 @@ # $1 is a number, N. The top N directories that are consuming space. Def= aults to # all. =20 -cd /usr/portage/ +pushd $(portageq portdir) >/dev/null if [[ -z $1 ]]; then du -h */*/files | sort -nr else du -h */*/files | sort -nr | head -n $1 fi +popd >/dev/null echo echo $(emerge --info | grep Timestamp)