#!/bin/sh

#
# configuration script for eboard
#
# syntax: eboard-config --prefix
#         eboard-config --bindir
#         eboard-config --datadir
#         eboard-config --version
#
# author: Felipe Bergo <bergo@seul.org>
# loosely based on gtk-config
#

prefix=/usr/local
bindir=/usr/local/bin
datadir=/usr/local/share
package=eboard
version=1.0.4

usage() 
{
	cat <<EOF
Usage: eboard-config --prefix
       eboard-config --datadir
       eboard-config --bindir
       eboard-config --version
EOF
	exit $1;
}

if test $# -eq 0; then
	usage 1 1>&2
fi

case "$1" in
	--prefix)  echo $prefix; exit 0;;
	--bindir)  echo $bindir; exit 0;;
	--datadir) echo $datadir/$package; exit 0;;
	--version) echo $version; exit 0;;
	*) usage 1;;
esac


