blob: f21f5de2d6e513e291ad19aa8123e049b41a428d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
ports_file="$1"
: ${ports_file:="freebsd.ports"}
exec 4< "${ports_file}"
while read -r pkg_name pkg_ports 0<&4; do
printf " %s>=a:%s ^%%" "${pkg_name}" "${pkg_ports}"
done
exec 4<&-
|