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