Update 2024-12-13 08:54 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2024-12-13 08:54:27 +01:00
parent 17325bb534
commit ca92c8badb
6 changed files with 69 additions and 9 deletions

20
.bin/port-search Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
if [ -z "$1" ]
then
echo "usage: port-search <file pattern> <search term>"
exit 2
fi
type="$1"
shift
find /usr/ports/ \
-not \( -path "/usr/ports/pobj" -prune \
-o -path "*/distfiles" -prune \
-o -path "*/packages" -prune \
-o -path "*/logs" -prune \
-o -path "*/CVS" -prune \
\) \
-type f \
-iname "$type" \
-exec ugrep -F -- "$@" {} +