You are here

Script to clean ports

Ivan Radovanovic's picture

Since make clean seems not to work properly anymore

#!/bin/sh

cd /usr/ports

for port in `find . -name work -type d | sed -E -e 's/\/work.*$//'`
do
cd /usr/ports/$port
make clean
done

Tags: