dotfiles/.bin/OLD/port-list

18 lines
508 B
Bash
Executable File

#!/bin/sh
find /usr/ports/ \
-maxdepth 6 \
-not \( \
-path "*CVS*" \
-o -path "*.git*" \
-o -path "/usr/ports/distfiles" \
-o -path "/usr/ports/infrastructure" \
-o -path "/usr/ports/lock" \
-o -path "/usr/ports/packages" \
-o -path "/usr/ports/plist" \
-o -path "/usr/ports/pobj" \
\) \
-path "*/pkg" \
-prune \
| sed 's,/usr/ports/\(.*\)/pkg$,\1,'