#!/bin/csh if ( `uname` != FreeBSD ) then echo "$0 is only for FreeBSD." exit 1 endif ################################################## # Remove all non-committed versions of ports # If a port has been committed, remove portname-* # If it has not been committed, remove portname* cd /usr/ports foreach port ( \ audio/praat-* \ audio/sndman* \ audio/wavegen* \ devel/libbacon* \ emulators/Win4BSD_wrapper* \ math/Matlab* \ math/lapack-3.0* \ math/lensnns-* \ math/randsign* \ math/vtk5-* \ math/vtkstatic* \ misc/mcwscripts* \ misc/nonmritools* \ multimedia/vtkmpeg2encode-* \ ports-mgmt/genplist-* \ science/1dmean* \ science/1dregression* \ science/InsightToolkit-* \ science/SurfRelax* \ science/TLv* \ science/afni-* \ science/bioimagesuite* \ science/caret* \ science/dtiquery* \ science/ffmap* \ science/ffnhfilter* \ science/ffsectorstats* \ science/freesurfer* \ science/fsl* \ science/hilbplug2ffmap* \ science/irtk* \ science/libffmap* \ science/linux-freesurfer* \ science/mkcolor3_caret_fim* \ science/mricro* \ science/mritools* \ science/nifticlib-* \ science/patchworks* \ science/rapid-* \ science/trialsto1d* \ sysutils/arkeia* \ sysutils/ddclone* \ sysutils/dosu* \ sysutils/endian-* \ sysutils/fixperms* \ sysutils/mcweject-* \ sysutils/update_mri_ports* \ x11-toolkits/qt4-mcw* \ x11-toolkits/qwt5* ) echo $port rm -rf $port end