#!/bin/sh
#
# ilrun.sh - Run samples using "ilrun" and the correct paths.
#
# Copyright (C) 2002  Southern Storm Software, Pty Ltd.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

# Get the incoming configuration variables.
ILRUN="@ILRUN@"

# Get the base to start looking for libraries from.
BASE=`dirname $0`

# Make sure that SSH_CLIENT is exported, because older versions of
# bash do not properly export it.
if test -n "$SSH_CLIENT" ; then
	export SSH_CLIENT
fi

# Run the engine, with the assembly paths set correctly.
exec "$ILRUN" -L${BASE}/../runtime -L${BASE}/../I18N -L${BASE}/../DotGNU.SSL -L${BASE}/../DotGNU.Images -L${BASE}/../System -L${BASE}/../System.Xml -L${BASE}/../Xsharp -L${BASE}/../Xsharp/.libs -L${BASE}/../System.Drawing -L${BASE}/../System.Drawing.Xsharp -L${BASE}/../System.Drawing.Postscript -L${BASE}/../System.Windows.Forms -L${BASE}/../JScript -L${BASE}/../Basic -L${BASE}/../compat -L${BASE}/../System.Net.IrDA -L${BASE}/../SharpZipLib -L${BASE}/../OpenSystem.Platform $*
