source: hybrid/branches/releng-10/nanobsd/tools/clean-ports.sh@ 13267

Last change on this file since 13267 was 12913, checked in by rick, 10 years ago

In the process of finding out why Huubs' build does fail every time, while other builds goes well, start a cleanup script which aims to weed out everything which is rogue and un-used.

  • Property svn:executable set to *
File size: 525 bytes
Line 
1#!/bin/sh
2
3echo "# Clean portstree to the bottom"
4
5echo "## Weed out old ports tree"
6svn st /usr/ports | awk '{print $2}' | sed 's+/work++' | xargs -n1 make clean -C
7
8echo "## Delete some custom curft (could also be seperate path I guess)"
9rm -vR /usr/ports/dns/maradns2 /usr/ports/net/lvrouted /usr/ports/net/tproxy /usr/ports/net/transproxy
10
11echo "## Make sure no files are shown anymore"
12svn st /usr/ports
13
14echo "## Clean port options"
15rm -Rvf /var/db/ports/*
16
17echo "# Delete all old packages"
18rm -Rvf /root/nanobsd/pkg/*
Note: See TracBrowser for help on using the repository browser.