Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2006 02:15:44 +0200
From:      Ion-Mihai Tetcu <itetcu@people.tecnik93.com>
To:        randall ehren <randall@ucsb.edu>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: ports cleaning script
Message-ID:  <20060123021544.0a994edc@it.buh.tecnik93.com>
In-Reply-To: <43D41AC2.206@ucsb.edu>
References:  <43D41AC2.206@ucsb.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 22 Jan 2006 15:52:34 -0800
randall ehren <randall@ucsb.edu> wrote:

> hi -
>   a few years ago i wrote a small perl script to cleanup all ports
> that had a 'work' directory, aka a 'make clean'. it's quite simple,
> but i haven't found anything that does a similar thing.
> 
> cleanup_port_ports.pl:
> #!/usr/bin/perl
> 
> ####
> ###
> ## clean out the ports tree (remove all the 'work' directories)
> # randall s. ehren 20001011
> 
> @works = `/usr/bin/find /usr/ports/ -name work`;
> foreach $directory (@works) {
>   print "removing $directory";
>   `/bin/rm -r $directory`;
> }

''make clean'' does more that removing work directory for some ports (that
generate config files -- like Makefile.inc, postfix ports used to do
this).

simpler would be to used -exec option of find or xargs, or porsclean -C.


-- 
IOnut - Unregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"

BOFH excuse #416:
We're out of slots on the server





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060123021544.0a994edc>