#! /bin/sh
# abbott@inslab.uky.edu
# tkbiblook.helper: TkBiblook v1.4.3, May 11th, 1996

# trying a PATH which might fit most unix types
PATH=$PATH:/usr/local/bin:/usr/bin:/usr/ucb:/bin:/usr/etc:/etc:/usr/sbin:/sbin:/usr/contrib/bin:/usr/openwin/bin:/usr/5bin:/usr/bsd:.; export PATH

if [ "$1" = make ]; then
	if [ "$2" != biblook -a "$2" != bibindex ]; then
		echo "
usage:  tkbiblook.helper args

	examples:

	tkbiblook.helper make biblook
	tkbiblook.helper make bibindex
	tkbiblook.helper register
	tkbiblook.helper suggest
"
		exit 1
	fi
	cd bibtools
	echo
	echo "You might have to edit the Makefile in bibtools and compile manually."
	echo
	make $2
	mv $2 ..
elif [ "$1" = register ]; then
	echo "Registering" | mail abbott@inslab.uky.edu
	echo "Registration sent!"
elif [ "$1" = suggest ]; then
	echo suggest
else
	echo "
usage:  tkbiblook.helper args

	examples:

	tkbiblook.helper make biblook
	tkbiblook.helper make bibindex
	tkbiblook.helper register
	tkbiblook.helper suggest
"
	exit 1
fi
exit 0
