#!/bin/bash

if [ "$1" == "--help" ]; then
	echo "old-style up2dates"
	exit 1
fi

for fb in $(find ../source -name FrugalBuild)
do
		dir=$(echo $fb|sed 's/\/\F.*//;s/.*\///')
		sh -x -c "source /usr/lib/frugalware/fwmakepkg; source $fb" 2>&1|grep -q '+ lynx' && \
			echo "$dir is buggy (`grep Maintainer $fb |sed 's/.*: //'`)"
done
