blob: c7c5679b7ca1b0d38ffc8cf774ece51424a0b8e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
msg () {
echo "$@" 1>&2
}
[ -z "$1" ] && msg "Usage: $0 list_file" && exit 1
: ${FREEBSD_VERSION:="`uname -r | sed 's|^\([0-9]*\).*$|\1|'`"}
: ${PORTSDIR:="/usr/ports"}
index="${PORTSDIR}/INDEX-${FREEBSD_VERSION}"
msg "==> FreeBSD version is ${FREEBSD_VERSION}"
msg "==> FreeBSD ports tree is ${PORTSDIR}"
msg "==> FreeBSD ports index file is ${index}"
msg "==> Running freebsd.ports.find"
if ./freebsd.ports.find "$1" "${index}"; then
msg "==> Done!"
else
msg "==> Failed"
exit 1
fi
|