Gentoo Archives: gentoo-dev

From: "Diego 'Flameeyes' Pettenò" <flameeyes@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] File counter
Date: Mon, 02 May 2005 08:13:32
Message-Id: 200505021011.07710@enterprise.flameeyes.is-a-geek.org
1 Ok I was a bit quiet lately but that's only because I was vocal elsewhere
2 (irc) ;)..
3
4 You can find attached a little script I wrote last night to get a count of
5 files in $FILESDIR for packages to make sure they just are the few needed, as
6 I'm moving the patches for packages which needs 2 or more patches every
7 versions in patchset tarballs which get downloaded only when requested.
8
9 It's a probably-wrong, dirty, bad-looking bash script, but it works fine here.
10
11 It must run from a portage basedir (it should work also on a personal overlay
12 anyway), and accepts two parameters: the first is the name of the category if
13 you want to check just one, the other one is the minimum number of files to
14 report, the default is 1, I usually make it 3.
15
16 Hope this can be useful.
17
18 --
19 Diego "Flameeyes" Pettenò
20 Gentoo Developer (Gentoo/FreeBSD, Video, Gentoo/AMD64)
21
22 http://dev.gentoo.org/~flameeyes/

Attachments

File name MIME type
countfiles.sh application/x-shellscript

Replies

Subject Author
Re: [gentoo-dev] File counter "Diego 'Flameeyes' Pettenò" <flameeyes@g.o>