Functional alternative to portsclean -C

Is there similar flag for portmaster?

eg. portsclean -CL && rm -rf /usr/ports/distfiles/*


P.S. rm -rf /usr/ports/distfiles/* is no the same as portmaster --clean-distfiles-(all)
 
You can also set WRKDIRPREFIX. Then everything will be build there keeping your ports tree nice and clean.
 
phoenix said:
# rm -rf /usr/ports/*/*/work
Works in every shell. No need for extra tools. :)

Yeah, I thought of that, I was under impression it's slower somehow (well make clean in ports root directory is really slow).
 
Back
Top