Date: Mon, 7 Jan 2002 23:17:24 +0100 From: Grzegorz Czaplinski <gregory@prioris.mini.pw.edu.pl> To: Freddie Cash <fcash@bigfoot.com> Cc: newbies@freebsd.org Subject: Re: cleanning ports Message-ID: <20020107231724.J19828@prioris.mini.pw.edu.pl> In-Reply-To: <3C39AB5F.15272.3EE480@localhost>; from fcash@bigfoot.com on Mon, Jan 07, 2002 at 02:06:23PM -0800 References: <3C39A646.23700.2AF89E@localhost>; <20020107225124.H19828@prioris.mini.pw.edu.pl> <3C39AB5F.15272.3EE480@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
--ibvzjYYg+QDzMCy1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 07, 2002 at 02:06:23PM -0800, Freddie Cash wrote: > > On Mon, Jan 07, 2002 at 01:44:38PM -0800, Freddie Cash wrote: > > > On Sun, 6 Jan 2002, Bernie wrote: > > > > if i wanna clean all the obj etc from the ports tree, > > > > can i go to /usr/ports and do a 'make clean' ? or do i have > > > > to make a script that changes to all subdirs and do 'make clean' > > > > on each dir? > > >=20 > > > Depending on what you want to do, and how much time you want to > > > devote to doing it, there are several ways to do this: > > >=20 > > > 1. Do a 'make clean' from /usr/ports/ and go out for lunch, dinner, > > > and a movie. Might be done by the time you get back. :) j/k > > >=20 > > > 2. Write a shell script to step through all the sub-directories > > > doing 'make clean'. This isn't my idea of fun, though, and simply > > > reproduces what #1 does. > > >=20 > > > 3. Write a shell script to delete "/usr/ports/*/*/work/". This > > > should be faster than either of the above, and can be extended to > > > delete "/usr/ports/distfiles/*". >=20 > > find /usr/ports -type d -name "work" -exec rm -r {}\ ; > > should do the job. ;> >=20 > In theory, it would, but there's a typo, meaning that find will=20 > complain. :) You can't have a space between the '\' and the ';'. :) >=20 > cd /usr/ports > find -type d -name work -exec rm -r {} \; >=20 > Or, to speed things up: > find -type d -name work -exec rm -rf {} \; >=20 > But, as I said above, there are plenty of ways to do it. :D >=20 As you said Freddie. ;>> Best regards, gregory --=20 Grzegorz Czaplinski <gregory@prioris.mini.pw.edu.pl> Fingerprint: EB77 E19D CFA2 5736 810F 847C A70F A275 2489 469F --ibvzjYYg+QDzMCy1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjw6HnMACgkQpw+idSSJRp/d8ACcDkCu3En/PvqT8O54zvvfHe+r Pt0AoJoF9oIdJg37dcMvsxC/fOozjdB3 =drmG -----END PGP SIGNATURE----- --ibvzjYYg+QDzMCy1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020107231724.J19828>