#!/bin/sh

if [ -z "$COBDIR" ]
   then
   echo "COBDIR is not set - exiting" 1>&2
   exit 1
   fi

if [ -z "$MFAUDIT_LOGS" ]
   then
   echo "Setting MFAUDIT_LOGS to $PWD"
   export MFAUDIT_LOGS=$PWD
fi

cd $COBDIR/lib

LD_LIBRARY_PATH=$COBDIR/lib:${LD_LIBRARY_PATH-/usr/lib}
export LD_LIBRARY_PATH
LIBPATH=$COBDIR/lib:${LIBPATH-/usr/lib}
export LIBPATH
SHLIB_PATH=$COBDIR/lib:${SHLIB_PATH-/usr/lib}
export SHLIB_PATH

exec $COBDIR/bin/mfauditmgr32 $*
