#!/bin/sh
#
#EXHIBIT A - Sun Industry Standards Source License
#
#"The contents of this file are subject to the Sun Industry
#Standards Source License Version 1.2 (the "License");
#You may not use this file except in compliance with the
#License. You may obtain a copy of the 
#License at http://wbemservices.sourceforge.net/license.html
#
#Software distributed under the License is distributed on
#an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
#express or implied. See the License for the specific
#language governing rights and limitations under the License.
#
#The Original Code is WBEM Services.
#
#The Initial Developer of the Original Code is:
#Sun Microsystems, Inc.
#
#Portions created by: Sun Microsystems, Inc.
#are Copyright  2001 Sun Microsystems, Inc.
#
#All Rights Reserved.
#
#Contributor(s): _______________________________________
#

#
# This is a Bourne shell script that adds new MOF classes
# to the CIM Repository while the CIMOM is running.
# 

PATH=/bin:/usr/bin:/usr/sbin:$PATH
RM="rm -f"
MKDIR="mkdir -p"
ECHO="echo"
PWD="pwd"

# If JDK is not in /usr/java, edit as needed
JAVA_HOME="/usr/java"

# If java is not in /usr/bin, edit as needed
JAVA="$JAVA_HOME/bin/java -classpath"

# Path to directory where jar files were created. Edit as needed
WBSERHOME=`cd ..;pwd`
WBSERBIN=$WBSERHOME/bin
WBSERLIB=$WBSERHOME/lib
CIMOMDIR=$WBSERHOME/cimom
CIMOMLIB=$CIMOMDIR/lib

WBEM=$WBSERLIB/wbem.jar
CIMOM=$CIMOMLIB/cimom.jar
MOFC=$WBSERBIN/mofcomp.jar
XML=$WBSERLIB/parser.jar
REPOSITORY=$CIMOMLIB/cimrepository.jar

CLASSPATH=.:$MOFC:$CIMOM:$WBEM:$XML:$REPOSITORY

MOFCOMPILE=org.wbemservices.wbem.compiler.mofc.CIM_Mofc

$ECHO "*********************************************************"
$ECHO "Adding MOF definitions to CIM Repository"
$ECHO "*********************************************************"

# Pass the arguments straight through to mofcomp
echo $JAVA $CLASSPATH $MOFCOMPILE $*
$JAVA $CLASSPATH $MOFCOMPILE $*

cd $WBSERBIN
