ports cleaning script

Jeremy Tregunna jtregunna at blurgle.ca
Sun Jan 22 16:10:04 PST 2006


sysutils/portupgrade has "portsclean" whose -C option will clean work  
dirs.

On 22-Jan-06, at 6:52 PM, randall ehren 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`;
> }
>
>
> -- 
>         :// randall s. ehren         :// voice 805.893.5632
>         :// systems administrator    :// isber|survey|avss.ucsb.edu
>         :// institute for social, behavioral, and economic research
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports- 
> unsubscribe at freebsd.org"
>
> !DSPAM:43d41ace130712196870959!
>


--
Jeremy Tregunna
jtregunna at blurgle.ca

"If you round off the fractions, embedded systems consume 100% of the  
worldwide production of microprocessors." -- Jim Turley




More information about the freebsd-ports mailing list