#!/bin/sh
#****************************************************************
# *	Copyright (C) 2003, Wistron Inc.  All Rights Reserved.
# *	File Name:		
# *	Author:			Jerry Zhou
# *	Create Time: 	2003-05-15 11:31:37
# *	Last Update: 	2003-06-23 14:11:11 by Jerry Zhou 
#****************************************************************
pegasus_home=/usr/local/share/pegasus
pegasus_bin_home=${pegasus_home}/bin
pegasus_repository=${pegasus_home}/repository
schema_home=${pegasus_home}/Schemas
cim27_path=${schema_home}/CIM27
internal_path=${schema_home}/Pegasus/Internal/VER20
interop_path=${schema_home}/Pegasus/InterOp/VER20
managedsys_path=${schema_home}/Pegasus/ManagedSystem/VER20

rm -rf ${pegasus_repository}

#${pegasus_bin_home}/cimmofl -w -R${pegasus_home} -nroot -I${cim27_path} ${cim27_path}/CIM_Core27.mof

#internal
${pegasus_bin_home}/cimmofl -w -R${pegasus_home} -nroot/PG_Internal ${cim27_path}/Core27_Qualifiers.mof
${pegasus_bin_home}/cimmofl -w -R${pegasus_home} -I${internal_path} -nroot/PG_Internal ${internal_path}/PG_InternalSchema20.mof

#interOp
${pegasus_bin_home}/cimmofl -w -R${pegasus_home} -I${cim27_path} -nroot/PG_InterOp ${cim27_path}/CIM_Core27.mof
${pegasus_bin_home}/cimmofl -w -R${pegasus_home} -I${cim27_path} -nroot/PG_InterOp ${cim27_path}/CIM_Event27.mof
${pegasus_bin_home}/cimmofl -w -R${pegasus_home} -I${interop_path} -nroot/PG_InterOp ${interop_path}/PG_InterOpSchema20.mof

#managedSys
${pegasus_bin_home}/cimmofl -w -R${pegasus_home} -I${cim27_path} -nroot/cimv2 ${cim27_path}/CIM_Schema27.mof
${pegasus_bin_home}/cimmofl -w -R${pegasus_home} -I${managedsys_path} -nroot/cimv2 ${managedsys_path}/PG_ManagedSystemSchema20.mof
${pegasus_bin_home}/cimmofl -w -R${pegasus_home} -I${managedsys_path} -nroot/PG_InterOp ${managedsys_path}/PG_ManagedSystemSchema20R.mof
