#!/bin/sh
startName=`dirname "$0"`
startName=`readlink -m "$startName"`
OO=/home/SMCDev/omniORB/Ubuntu
export LD_LIBRARY_PATH="$startName:$OO/lib:/usr/local/boost/1.54.0/lib"
export PATH="$startName:$OO/bin:$PATH"
(

	BASE="./ServerExec -ORBInitRef NameService=corbaname::localhost"

	if [ -z "$1" ]
	then
		$BASE

	elif [ -z "$2" ]
	then
		$BASE "$1"

	elif [ -z "$3" ]
	then
		$BASE "$1" "$2"

	elif [ -z "$4" ]
	then
		$BASE "$1" "$2" "$3"

	elif [ -z "$5" ]
	then
		$BASE "$1" "$2" "$3" "$4"

	elif [ -z "$6" ]
	then
		$BASE "$1" "$2" "$3" "$4" "$5"

	elif [ -z "$7" ]
	then
		$BASE "$1" "$2" "$3" "$4" "$5" "$6"

	elif [ -z "$8" ]
	then
		$BASE "$1" "$2" "$3" "$4" "$5" "$6" "$7"

	else
		$BASE $*
	fi
)
