include ../../../Mk/dports.autoconf.mk .PHONY: test $(bindir)/port: @echo "Please install MacPorts before running this test" @exit 1 test: @PORTSRC=$(PORTSRC) $(bindir)/port clean > /dev/null @sh -c "export PORTSRC=$(PORTSRC); $(bindir)/port info" > output 2>&1 || (cat output; exit 1) @diff output master 2>&1 | tee difference @if [ -s difference ]; then \ exit 1; \ else \ rm -f difference; \ fi