#!/bin/ksh

#
#  %Z%%W% %I%
#  ===========================================================================
#  Licensed Materials - Property of IBM
#  "Restricted Materials of IBM"
# 
#  IBM Object Request Broker Edition, 2.00
#  (C) Copyright IBM Corp. 1998, 2013. All Rights Reserved
#  ===========================================================================


#

# rmic script which uses the IBM back-end generators for -iiop and -idl
#

PRG=$(whence $0) >/dev/null 2>&1

# Resolve symbolic links
while [[ -L "$PRG" ]]
do
    src=$(ls -l $PRG | awk '{print $NF}')
    print $src | grep -q '^/'
    if [[ $? = 1 ]]
    then
	PRG=${PRG%/*}/$src
    else
	PRG=$src
    fi
done
APPHOME=$(""cd ${PRG%/*}/..; pwd)

# invoke rmic with the original options
$APPHOME/bin/rmic -J-classpath -J$APPHOME/lib/ibmorbtools.jar "$@"
