#!/bin/sh
:
: if 'ranlib' exists and it complaints "ar already did ranlib for you", 
: you should take off the comment of the following line.
:
: exit 0
:
if test "$EMPRESSPATH" = "" 
then
	echo "EMPRESSPATH not set"
	exit 1

elif test ! -d $EMPRESSPATH
then
	echo "invalid EMPRESSPATH"
	exit 1
fi

PATH=/bin:/usr/bin:${PATH}

if test -f $EMPRESSPATH/config/options
then
	. $EMPRESSPATH/config/options
fi

case $MSSYS_PLATFORM in
  SYS_OS_WIN32 | SYS_OS_UNIX_QNX)	exit 0 ;;
esac

case $1 in
   -TESTMODE)	IFS=:
		for I in $PATH
		do
			if test -x $I/ranlib
			then
				exit 0
			fi
		done
		exit 1
		;;
esac

for I
do
	if test ! -f $I
	then
		echo "$0: cannot open $I"
	fi
done

( ranlib $* ) 2> /dev/null
