Ticket #28186: orphans

File orphans, 370 bytes (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

orphans script

Line 
1#!/bin/bash
2
3PREFIX=$(which port | sed 's,/bin/port$,,')
4
5find -E $PREFIX -regex "$PREFIX/(bin/(daemondo|port|port(f|index|mirror))|man|var/cache/.*|(var|share)/macports/.*|share/man/man./(port\\.1|macports\\.conf\\.5|port(file|group|hier|style)\\.7).gz)" -prune -o \! -type d -print0 \
6| xargs -0 port -q provides \
7| sed -n 's/ is not provided by a MacPorts port.//p'