#!/bin/sh
# This script is a part of Kahua
# Generated by $Id: make-script.scm,v 1.2 2004/10/19 02:37:34 shiro Exp $
# Do not edit.
if test "$1" = "--test"; then
  shift
  # in-place execution.  find source tree
  if test -r ./kahua/config.scm.in; then
    libpath=.
  elif test -r ../src/kahua/config.scm.in; then
    libpath=../src
  elif test -r ../../src/kahua/config.scm.in; then
    libpath=../../src
  else
    echo "$0: Cannot locate kahua source tree"
    exit 1
  fi
  # adds -c $libpath/test.conf to the option.  it will be
  # overridden if the user gives -c option.
  confopt="-c $libpath/test.conf"
else
  libpath=/usr/pkg/lib/kahua
  confopt=
fi
exec /usr/pkg/bin/gosh -I${libpath} ${libpath}/kahua-install.scm --gosh /usr/pkg/bin/gosh ${confopt} "$@"
