#!/bin/sh
PREFIX=__PREFIX__
IMAGE=${PREFIX}/share/growl/darwinports.png
GROWL="${PREFIX}/bin/growlnotify --image ${IMAGE}"

VAR=$( ${PREFIX}/bin/port $* )

if [ $? -eq 0 ]; then
	echo -e "${*}\n\n${VAR}" | ${GROWL} -s -p -1
else
	echo -e "${*}\n\n${VAR}" | ${GROWL} -s
fi
