#!/bin/sh

# ###############################################################
# Exceed Connection Server 2008
# Copyright (c) 1997-2008 Hummingbird Ltd. All Rights Reserved.
# ###############################################################
# getversions
# $Revision: 10408 $
# ###############################################################

binaries="sys/esessionmgr sys/ewebhost sys/authenticator sys/info sys/keymgr elpr"
Banner="getversions - Exceed Connection Server 2008"

echo
echo ${Banner}
echo

if [ -d bin -a -d conf -a -d sessions ] ; then
	# we are in the roor dir
	cd bin
elif [ -x esessionmgr -a -x ewebhost ] ; then
	# we are in the bin/sys dir
	cd ..
fi

for i in ${binaries} 
do
	if [ ! -r ${i} ] ; then
		echo "${i} missing"
	elif [ ! -x ${i} ] ; then
		echo "${i} not executable"
	else
		./${i} --version
	fi	
done
echo

