#!/bin/sh
#****************************************************************************
#  ##   ##         #####   #####  ##     **        NoSQL RDBMS - nosql      *
#  ###  ##        ####### ####### ##     **       $Revision: 2.1 $			*
#  #### ##        ###     ##   ## ##     ************************************
#  #######  ####  #####   ##   ## ##     **      Carlo Strozzi (c) 1998     *
#  ####### ######   ##### ## # ## ##     ************************************
#  ## #### ##  ##     ### ##  ### ##     **           Written by            *
#  ##  ### ###### ####### ######  ###### **          Carlo Strozzi          *
#  ##   ##  ####   #####   #### # ###### **     e-mail: carlos@linux.it     *
#****************************************************************************
#   NoSQL RDBMS, Copyright (C) 1998 Carlo Strozzi.                          *
#   This program comes with ABSOLUTELY NO WARRANTY; for details             *
#   refer to the GNU General Public License.                                *
#****************************************************************************
#
# Main NoSQL v2 front-end shell function.
#
##########################################################################

# Include the NoSQL main shell front-end.

# If NSQLIB is unset try auto-detection.
if test -z "${NSQLIB}"
then
  # Try PREFIX/lib (e.g. /usr/lib/ ).
  NSQLIB="$(expr $0 : '\(.*\).*/.*/.*$')/lib/nosql"
fi

# Include the NoSQL main shell front-end.
. ${NSQLIB}/sh/nosqlmain || exit 1

nosql "$@"

exit $?

