#!/bin/sh

PHONE=/usr/local/bin/phone

echo Content-type: text/html
echo

if [ -x $PHONE ]; then
	if [ $# = 0 ]; then
		cat << EOM
<TITLE>Phone</TITLE>
<H1>Phone Database</H1>

<ISINDEX>

This is a gateway to "phone". Type a text string in your browser's
search dialog.<P>
EOM
	else
		echo \<PRE\>
		$PHONE -v "$*"
	fi
else
	echo Cannot find phone on this system.
fi
