#!/bin/sh
#
# helper script to analyze built ports from the last run
#
PORTSDIR="/usr/local/poudriere/ports/default"
LOGDIR="/usr/local/poudriere/data/logs/bulk/110-head-sparc64-default/latest"
FILENAME=".poudriere.ports.built"
#
PORTS=`cut -f 1 -w ${LOGDIR}/${FILENAME} | sort | uniq`
for port in ${PORTS}; do
  (cd ${PORTSDIR}/${port} && echo -n "# " && make -V IGNORE && echo ${port})
done
