Date: Sun, 22 Jan 2006 19:09:38 -0500 From: Jeremy Tregunna <jtregunna@blurgle.ca> To: randall ehren <randall@ucsb.edu> Cc: freebsd-ports@freebsd.org Subject: Re: ports cleaning script Message-ID: <399F8FC2-50EA-4F1B-862C-6948AFB30384@blurgle.ca> In-Reply-To: <43D41AC2.206@ucsb.edu> References: <43D41AC2.206@ucsb.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports- > unsubscribe@freebsd.org" > > !DSPAM:43d41ace130712196870959! > -- Jeremy Tregunna jtregunna@blurgle.ca "If you round off the fractions, embedded systems consume 100% of the worldwide production of microprocessors." -- Jim Turley
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?399F8FC2-50EA-4F1B-862C-6948AFB30384>