From owner-freebsd-ports Sun Jun 4 15:14:51 2000 Delivered-To: freebsd-ports@freebsd.org Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (Postfix) with ESMTP id 9D45F37BB78 for ; Sun, 4 Jun 2000 15:14:47 -0700 (PDT) (envelope-from babolo@links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id CAA15222; Mon, 5 Jun 2000 02:14:18 +0400 (MSD) Message-Id: <200006042214.CAA15222@aaz.links.ru> Subject: Re: fetch-list / how to get the list of required distfiles? In-Reply-To: <20000604175613.A2974@argon.gryphonsoft.com> from "Will Andrews" at "Jun 4, 0 05:56:13 pm" To: andrews@technologist.com (Will Andrews) Date: Mon, 5 Jun 2000 02:14:17 +0400 (MSD) Cc: pcasidy@worldnet.fr, freebsd-ports@FreeBSD.ORG From: "Aleksandr A.Babaylov" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Will Andrews writes: > On Mon, Jun 05, 2000 at 01:47:39AM +0400, Aleksandr A.Babaylov wrote: > > My current 4Gb /usr/ports/distfiles is full. > > I think not CD but DVD is what you want :-) > Hehe! I had 1.3GB of old distfiles in my /usr/ports/distfiles last week > until I cleaned out all the crufty ones. :-) It is MORE comfortably fetch all and and keep as many space as need for it then sort items by hands and wait for distfile while fetch when want to build. > > I use this script (I call it "fetchall") to fetch all distfiles > > this script must be in you PATH > Oooh, would you mind if I added it to /usr/ports/Tools/scripts ? this script is free and you can add it to /usr/ports/Tools/scripts if you think it is useful enough. Add # make fetch for all ports string please if you add it to /usr/ports/Tools/scripts You can add "checkall" too: #!/bin/sh # make checksum for all ports dir="/usr/ports" cd ${dir} if [ x"$*" = x"" ] ; then for j in * ; do if [ -d $j -a x"$j" != x"pkg" -a x"$j" != x"distfiles" -a x"$j" != x"templates" ] ; then $0 $j fi done else for j in "$@" ; do ( cd ${dir}/$j for i in * ; do if [ -d $i -a x"$i" != x"pkg" -a x"$i" != x"CVS" ] ; then ( cd $i echo $j/$i make checksum ) fi done ) done fi Note: both scripts use $0 so use absolute path or keep this scripts in $PATH -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message