]> sbz's 6dev Repos - freebsd-maintainer-scripts/.git/blob - check-distfile.sh
check-distfile: fetch index if not present on disk
[freebsd-maintainer-scripts/.git] / check-distfile.sh
1 #!/bin/sh
2
3 repopath="${HOME}/git/ports"
4
5 [ ! -f "${repopath}/INDEX*" ] && make -C "${repopath}" fetchindex
6
7 [ ! -f /usr/local/bin/distilator ] && pkg install -y distilator
8
9 ports=$(make -C "${repopath}" search key="sbz@FreeBSD.org" \
10     display=path|grep -v ^$|awk '{print $2}')
11
12 for origin in ${ports};
13 do
14     (cd ${origin}; echo "Port: ${origin}"; distilator; echo) | tee -a /tmp/myport-distfile.log
15 done