#!/bin/ksh
# 5765-144 (C) COPYRIGHT IBM CORP 1993, 1994
# All Rights Reserved
# Licensed Materials - Property of IBM
#
# US Government Users Restricted Rights - Use, duplication or disclosure
# restricted by GSA ADP Schedule Contract with IBM Corp.
#
# set -o verbose

# If MP_PREFIX is unset or null, _BASE evaluates to /usr/lpp/poe
# If MP_PREFIX is set, _BASE evaluates to $MP_PREFIX/poe

# If called with no arguments, echo a syntax summary
if [ $# -eq 0 ]
then
# Display the man pages
	if [ -r /usr/man/cat1/mpcc ] 
	then
	/usr/bin/more -c /usr/man/cat1/mpcc
	else
	echo "No help available for command mpcc"
	fi
	exit 1 
fi
export _BASE=${MP_PREFIX:-/usr/lpp}/poe

export _EUI1=eui1c
export _COMPILER=/bin/xlc_r

						# IX48927
						# logic below replaced call
						# of mputil $*
opts=
args=$#
while [ $args -gt 0 ]
do
	param=$1
	shift
	args=`expr $args - 1`
	case $param in
		*\"*) opts="$opts '$param'"
		;;
		*) opts="$opts $param "
		;;
	esac
done

eval "mputil.nx $opts"
# return code from mputil (IX42245)
rc=$?
exit $rc

