#!/bin/sh echo "# Clean portstree to the bottom" echo "## Weed out old ports tree" svn st /usr/ports | awk '{print $2}' | sed 's+/work++' | xargs -n1 make clean -C echo "## Delete some custom curft (could also be seperate path I guess)" rm -vR /usr/ports/dns/maradns2 /usr/ports/net/lvrouted /usr/ports/net/tproxy /usr/ports/net/transproxy echo "## Make sure no files are shown anymore" svn st /usr/ports echo "## Clean port options" rm -Rvf /var/db/ports/* echo "# Delete all old packages" rm -Rvf /root/nanobsd/pkg/*