#! /bin/sh

prefix="/usr"
datarootdir="${prefix}/share"
exec_prefix="${prefix}"
PACKAGE_TARNAME="ngraph-gtk"

BINDIR="${exec_prefix}/bin"
DOCDIR="${datarootdir}/doc/${PACKAGE_TARNAME}"
LIBEXECDIR="${exec_prefix}/libexec/ngraph-gtk"
LIBDIR="${exec_prefix}/lib/ngraph-gtk"
DATADIR="${datarootdir}/ngraph-gtk"
CONFDIR="/etc/ngraph-gtk"

TARGET=`basename $1 .in`
SED="/usr/bin/sed"

LC_ALL=C
export LC_ALL

cat $1 | "$SED" -e "s!BINDIRDEF!$BINDIR!g" \
		-e "s!DOCDIRDEF!$DOCDIR!g" \
		-e "s!LIBEXECDIRDEF!$LIBEXECDIR!g" \
		-e "s!LIBDIRDEF!$LIBDIR!g" \
		-e "s!DATADIRDEF!$DATADIR!g" \
		-e "s!CONFDIRDEF!$CONFDIR!g" > $TARGET
