10Sstevel@tonic-gate#! /usr/bin/sh 20Sstevel@tonic-gate# 30Sstevel@tonic-gate# CDDL HEADER START 40Sstevel@tonic-gate# 50Sstevel@tonic-gate# The contents of this file are subject to the terms of the 60Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 70Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 80Sstevel@tonic-gate# with the License. 90Sstevel@tonic-gate# 100Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 110Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 120Sstevel@tonic-gate# See the License for the specific language governing permissions 130Sstevel@tonic-gate# and limitations under the License. 140Sstevel@tonic-gate# 150Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 160Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 170Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 180Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 190Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# CDDL HEADER END 220Sstevel@tonic-gate# 230Sstevel@tonic-gate# 240Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 250Sstevel@tonic-gate# 26*556Smike_s# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 270Sstevel@tonic-gate# Use is subject to license terms. 280Sstevel@tonic-gate# 290Sstevel@tonic-gate 300Sstevel@tonic-gateINFILE=classes.tmp 310Sstevel@tonic-gateINFILE1=assocclasses.tmp 320Sstevel@tonic-gateCLASSFILE=classes 330Sstevel@tonic-gateASSOCCLASSFILE=assocclasses 340Sstevel@tonic-gateLIBFILE=libname 350Sstevel@tonic-gateTMPFILE=tmp.tmp 360Sstevel@tonic-gateTMPFILE1=tmp1.tmp 370Sstevel@tonic-gatePWD=`pwd` 380Sstevel@tonic-gate 390Sstevel@tonic-gateHEADER=${PWD}/master.h 400Sstevel@tonic-gate 410Sstevel@tonic-gate 420Sstevel@tonic-gaterm -f $HEADER $TMPFILE $TMPFILE1 $CLASSFILE $ASSOCCLASSFILE $LIBFILE 430Sstevel@tonic-gate 440Sstevel@tonic-gate# Convert into separate lines per class 450Sstevel@tonic-gatefor x in `cat $INFILE` 460Sstevel@tonic-gatedo 470Sstevel@tonic-gate echo $x >> $TMPFILE 480Sstevel@tonic-gatedone 490Sstevel@tonic-gate 500Sstevel@tonic-gate# Convert into separate lines per class 510Sstevel@tonic-gatefor x in `cat $INFILE1` 520Sstevel@tonic-gatedo 530Sstevel@tonic-gate echo $x >> $TMPFILE1 540Sstevel@tonic-gatedone 550Sstevel@tonic-gate##################################################### 560Sstevel@tonic-gate# Create file containing only the library name 570Sstevel@tonic-gatetail -1 $TMPFILE > $LIBFILE 580Sstevel@tonic-gateLIBNAME=`cat $LIBFILE` 590Sstevel@tonic-gate 600Sstevel@tonic-gate# Create file containing only the class names 610Sstevel@tonic-gateCOUNT=`cat $TMPFILE | wc -l` 620Sstevel@tonic-gateCOUNT=`expr $COUNT - 1` 630Sstevel@tonic-gatehead -n $COUNT $TMPFILE > $CLASSFILE 640Sstevel@tonic-gate 650Sstevel@tonic-gate# Create file containing only the class names 660Sstevel@tonic-gateCOUNT=`cat $TMPFILE1 | wc -l` 670Sstevel@tonic-gateCOUNT=`expr $COUNT - 1` 680Sstevel@tonic-gatehead -n $COUNT $TMPFILE1 > $ASSOCCLASSFILE 690Sstevel@tonic-gate############################################################## 700Sstevel@tonic-gate# 710Sstevel@tonic-gate# Create the header file 720Sstevel@tonic-gate# 730Sstevel@tonic-gateecho "#include <cimapi.h>" > $HEADER 740Sstevel@tonic-gateecho "#include <cimlogsvc.h>" > $HEADER 750Sstevel@tonic-gate 760Sstevel@tonic-gate# 770Sstevel@tonic-gate# Create the externs 780Sstevel@tonic-gate# cp_enumInstances 790Sstevel@tonic-gate# 800Sstevel@tonic-gate 810Sstevel@tonic-gateecho "" >> $HEADER 820Sstevel@tonic-gatefor x in `cat $TMPFILE` 830Sstevel@tonic-gatedo 840Sstevel@tonic-gate echo "extern CCIMInstanceList*" >> $HEADER 850Sstevel@tonic-gate echo "cp_enumInstances_$x(CCIMObjectPath* pOP);" >> $HEADER 860Sstevel@tonic-gatedone 870Sstevel@tonic-gate 880Sstevel@tonic-gate 890Sstevel@tonic-gate# 900Sstevel@tonic-gate# Create the externs 910Sstevel@tonic-gate# cp_enumInstanceNames 920Sstevel@tonic-gate# 930Sstevel@tonic-gate 940Sstevel@tonic-gateecho "" >> $HEADER 950Sstevel@tonic-gatefor x in `cat $TMPFILE` 960Sstevel@tonic-gatedo 970Sstevel@tonic-gate echo "extern CCIMObjectPathList*" >> $HEADER 980Sstevel@tonic-gate echo "cp_enumInstanceNames_$x(CCIMObjectPath* pOP);" >> $HEADER 990Sstevel@tonic-gatedone 1000Sstevel@tonic-gate 1010Sstevel@tonic-gate# 1020Sstevel@tonic-gate# cp_createInstance 1030Sstevel@tonic-gate# 1040Sstevel@tonic-gate 1050Sstevel@tonic-gateecho "" >> $HEADER 1060Sstevel@tonic-gatefor x in `cat $TMPFILE` 1070Sstevel@tonic-gatedo 1080Sstevel@tonic-gate echo "extern CCIMObjectPath*" >> $HEADER 1090Sstevel@tonic-gate echo "cp_createInstance_$x(CCIMObjectPath* pOP, CCIMInstance* pInst);" >> $HEADER 1100Sstevel@tonic-gatedone 1110Sstevel@tonic-gate 1120Sstevel@tonic-gate# 1130Sstevel@tonic-gate# cp_deleteInstance 1140Sstevel@tonic-gate# 1150Sstevel@tonic-gate 1160Sstevel@tonic-gateecho "" >> $HEADER 1170Sstevel@tonic-gatefor x in `cat $TMPFILE` 1180Sstevel@tonic-gatedo 1190Sstevel@tonic-gate echo "extern CIMBool" >> $HEADER 1200Sstevel@tonic-gate echo "cp_deleteInstance_$x(CCIMObjectPath* pOP);" >> $HEADER 1210Sstevel@tonic-gatedone 1220Sstevel@tonic-gate 1230Sstevel@tonic-gate# 1240Sstevel@tonic-gate# cp_getInstance 1250Sstevel@tonic-gate# 1260Sstevel@tonic-gate 1270Sstevel@tonic-gateecho "" >> $HEADER 1280Sstevel@tonic-gatefor x in `cat $TMPFILE` 1290Sstevel@tonic-gatedo 1300Sstevel@tonic-gate echo "extern CCIMInstance*" >> $HEADER 1310Sstevel@tonic-gate echo "cp_getInstance_$x(CCIMObjectPath* pOP);" >> $HEADER 1320Sstevel@tonic-gatedone 1330Sstevel@tonic-gate 1340Sstevel@tonic-gate# 1350Sstevel@tonic-gate# cp_setInstance 1360Sstevel@tonic-gate# 1370Sstevel@tonic-gate 1380Sstevel@tonic-gateecho "" >> $HEADER 1390Sstevel@tonic-gatefor x in `cat $TMPFILE` 1400Sstevel@tonic-gatedo 1410Sstevel@tonic-gate echo "extern CIMBool" >> $HEADER 1420Sstevel@tonic-gate echo "cp_setInstance_$x(CCIMObjectPath* pOP, CCIMInstance* pInst);" >> $HEADER 1430Sstevel@tonic-gatedone 1440Sstevel@tonic-gate 1450Sstevel@tonic-gate# 1460Sstevel@tonic-gate# cp_setProperty 1470Sstevel@tonic-gate# 1480Sstevel@tonic-gate 1490Sstevel@tonic-gateecho "" >> $HEADER 1500Sstevel@tonic-gatefor x in `cat $TMPFILE` 1510Sstevel@tonic-gatedo 1520Sstevel@tonic-gate echo "extern CIMBool" >> $HEADER 1530Sstevel@tonic-gate echo "cp_setProperty_$x(CCIMObjectPath* pOP, CCIMProperty* pProp);" >> $HEADER 1540Sstevel@tonic-gatedone 1550Sstevel@tonic-gate 1560Sstevel@tonic-gate# 1570Sstevel@tonic-gate# cp_invokeMethod 1580Sstevel@tonic-gate# 1590Sstevel@tonic-gate 1600Sstevel@tonic-gateecho "" >> $HEADER 1610Sstevel@tonic-gatefor x in `cat $TMPFILE` 1620Sstevel@tonic-gatedo 1630Sstevel@tonic-gate echo "extern CCIMProperty*" >> $HEADER 1640Sstevel@tonic-gate echo "cp_invokeMethod_$x(CCIMObjectPath* pOP, cimchar* pName,CCIMPropertyList* pInParams,CCIMPropertyList* pInOutParams);" >> $HEADER 1650Sstevel@tonic-gatedone 1660Sstevel@tonic-gate 1670Sstevel@tonic-gate# 1680Sstevel@tonic-gate# cp_execQuery 1690Sstevel@tonic-gate# 1700Sstevel@tonic-gate 1710Sstevel@tonic-gateecho "" >> $HEADER 1720Sstevel@tonic-gatefor x in `cat $TMPFILE` 1730Sstevel@tonic-gatedo 1740Sstevel@tonic-gate echo "extern CCIMInstanceList *" >> $HEADER 1750Sstevel@tonic-gate echo "cp_execQuery_$x(CCIMObjectPath* pOP, char *selectList,char *nonJoinExp, char *queryExp, char *queryType);" >> $HEADER 1760Sstevel@tonic-gatedone 1770Sstevel@tonic-gate 1780Sstevel@tonic-gate 1790Sstevel@tonic-gate# 1800Sstevel@tonic-gate# cp_associators 1810Sstevel@tonic-gate# 1820Sstevel@tonic-gate 1830Sstevel@tonic-gateecho "" >> $HEADER 1840Sstevel@tonic-gatefor x in `cat $TMPFILE1` 1850Sstevel@tonic-gatedo 1860Sstevel@tonic-gate echo "extern CCIMInstanceList *" >> $HEADER 1870Sstevel@tonic-gate echo "cp_associators_$x(CCIMObjectPath* pAssocName, CCIMObjectPath *pObjectName, char *pResultClass, char *pRole, char *pResultRole);" >> $HEADER 1880Sstevel@tonic-gatedone 1890Sstevel@tonic-gate 1900Sstevel@tonic-gate# 1910Sstevel@tonic-gate# cp_associatorNames 1920Sstevel@tonic-gate# 1930Sstevel@tonic-gate 1940Sstevel@tonic-gateecho "" >> $HEADER 1950Sstevel@tonic-gatefor x in `cat $TMPFILE1` 1960Sstevel@tonic-gatedo 1970Sstevel@tonic-gate echo "extern CCIMObjectPathList *" >> $HEADER 1980Sstevel@tonic-gate echo "cp_associatorNames_$x(CCIMObjectPath* pAssocName, CCIMObjectPath *pObjectName, char *pResultClass, char *pRole, char *pResultRole);" >> $HEADER 1990Sstevel@tonic-gatedone 2000Sstevel@tonic-gate 2010Sstevel@tonic-gate# 2020Sstevel@tonic-gate# cp_reference 2030Sstevel@tonic-gate# 2040Sstevel@tonic-gate 2050Sstevel@tonic-gateecho "" >> $HEADER 2060Sstevel@tonic-gatefor x in `cat $TMPFILE1` 2070Sstevel@tonic-gatedo 2080Sstevel@tonic-gate echo "extern CCIMObjectPathList *" >> $HEADER 2090Sstevel@tonic-gate echo "cp_references_$x(CCIMObjectPath* pAssocName, CCIMObjectPath *pObjectName, char *pRole);" >> $HEADER 2100Sstevel@tonic-gatedone 2110Sstevel@tonic-gate 2120Sstevel@tonic-gate# 2130Sstevel@tonic-gate# cp_referenceNames 2140Sstevel@tonic-gate# 2150Sstevel@tonic-gate 2160Sstevel@tonic-gateecho "" >> $HEADER 2170Sstevel@tonic-gatefor x in `cat $TMPFILE1` 2180Sstevel@tonic-gatedo 2190Sstevel@tonic-gate echo "extern CCIMObjectPathList *" >> $HEADER 2200Sstevel@tonic-gate echo "cp_referenceNames_$x(CCIMObjectPath* pAssocName, CCIMObjectPath *pObjectName, char *pRole);" >> $HEADER 2210Sstevel@tonic-gatedone 2220Sstevel@tonic-gate 2230Sstevel@tonic-gate############################################################## 2240Sstevel@tonic-gate# 2250Sstevel@tonic-gate# Create the dispatch tables 2260Sstevel@tonic-gate# 2270Sstevel@tonic-gate############################################################## 2280Sstevel@tonic-gate 2290Sstevel@tonic-gate 2300Sstevel@tonic-gate# 2310Sstevel@tonic-gate# *cpInvokeMethodTable 2320Sstevel@tonic-gate# 2330Sstevel@tonic-gate 2340Sstevel@tonic-gateecho "" >> $HEADER 2350Sstevel@tonic-gateecho "CCIMProperty *" >> $HEADER 2360Sstevel@tonic-gateecho "(*cpInvokeMethodTable[])(CCIMObjectPath *, cimchar *, CCIMPropertyList *, CCIMPropertyList *) = {" >> $HEADER 2370Sstevel@tonic-gatefor x in `cat $CLASSFILE` 2380Sstevel@tonic-gatedo 2390Sstevel@tonic-gate echo "cp_invokeMethod_$x," >> $HEADER 2400Sstevel@tonic-gatedone 2410Sstevel@tonic-gate 2420Sstevel@tonic-gateecho "cp_invokeMethod_$LIBNAME};" >> $HEADER 2430Sstevel@tonic-gate 2440Sstevel@tonic-gate 2450Sstevel@tonic-gate# 2460Sstevel@tonic-gate# *createInstanceTable 2470Sstevel@tonic-gate# 2480Sstevel@tonic-gate 2490Sstevel@tonic-gateecho "" >> $HEADER 2500Sstevel@tonic-gateecho "CCIMObjectPath *" >> $HEADER 2510Sstevel@tonic-gateecho "(*createInstanceTable[])(CCIMObjectPath *, CCIMInstance *) = {" >> $HEADER 2520Sstevel@tonic-gatefor x in `cat $CLASSFILE` 2530Sstevel@tonic-gatedo 2540Sstevel@tonic-gate echo "cp_createInstance_$x," >> $HEADER 2550Sstevel@tonic-gatedone 2560Sstevel@tonic-gateecho "cp_createInstance_$LIBNAME};" >> $HEADER 2570Sstevel@tonic-gate 2580Sstevel@tonic-gate# 2590Sstevel@tonic-gate# *deleteInstanceTable 2600Sstevel@tonic-gate# 2610Sstevel@tonic-gate 2620Sstevel@tonic-gateecho "" >> $HEADER 2630Sstevel@tonic-gateecho "CIMBool" >> $HEADER 2640Sstevel@tonic-gateecho "(*deleteInstanceTable[])( CCIMObjectPath *) = {" >> $HEADER 2650Sstevel@tonic-gatefor x in `cat $CLASSFILE` 2660Sstevel@tonic-gatedo 2670Sstevel@tonic-gate echo "cp_deleteInstance_$x," >> $HEADER 2680Sstevel@tonic-gatedone 2690Sstevel@tonic-gateecho "cp_deleteInstance_$LIBNAME};" >> $HEADER 2700Sstevel@tonic-gate 2710Sstevel@tonic-gate# 2720Sstevel@tonic-gate# *enumInstanceTable 2730Sstevel@tonic-gate# 2740Sstevel@tonic-gate 2750Sstevel@tonic-gateecho "" >> $HEADER 2760Sstevel@tonic-gateecho "CCIMInstanceList *" >> $HEADER 2770Sstevel@tonic-gateecho "(*enumInstanceTable[])(CCIMObjectPath *) = {" >> $HEADER 2780Sstevel@tonic-gatefor x in `cat $CLASSFILE` 2790Sstevel@tonic-gatedo 2800Sstevel@tonic-gate echo "cp_enumInstances_$x," >> $HEADER 2810Sstevel@tonic-gatedone 2820Sstevel@tonic-gateecho "cp_enumInstances_$LIBNAME};" >> $HEADER 2830Sstevel@tonic-gate 2840Sstevel@tonic-gate# 2850Sstevel@tonic-gate# *enumInstanceNamesTable 2860Sstevel@tonic-gate# 2870Sstevel@tonic-gate 2880Sstevel@tonic-gateecho "" >> $HEADER 2890Sstevel@tonic-gateecho "CCIMObjectPathList *" >> $HEADER 2900Sstevel@tonic-gateecho "(*enumInstanceNamesTable[])(CCIMObjectPath *) = {" >> $HEADER 2910Sstevel@tonic-gatefor x in `cat $CLASSFILE` 2920Sstevel@tonic-gatedo 2930Sstevel@tonic-gate echo "cp_enumInstanceNames_$x," >> $HEADER 2940Sstevel@tonic-gatedone 2950Sstevel@tonic-gateecho "cp_enumInstanceNames_$LIBNAME};" >> $HEADER 2960Sstevel@tonic-gate 2970Sstevel@tonic-gate# 2980Sstevel@tonic-gate# *getInstanceTable 2990Sstevel@tonic-gate# 3000Sstevel@tonic-gate 3010Sstevel@tonic-gateecho "" >> $HEADER 3020Sstevel@tonic-gateecho "CCIMInstance *" >> $HEADER 3030Sstevel@tonic-gateecho "(*getInstanceTable[])(CCIMObjectPath *) = {" >> $HEADER 3040Sstevel@tonic-gatefor x in `cat $CLASSFILE` 3050Sstevel@tonic-gatedo 3060Sstevel@tonic-gate echo "cp_getInstance_$x," >> $HEADER 3070Sstevel@tonic-gatedone 3080Sstevel@tonic-gateecho "cp_getInstance_$LIBNAME};" >> $HEADER 3090Sstevel@tonic-gate 3100Sstevel@tonic-gate# 3110Sstevel@tonic-gate# *setInstanceTable 3120Sstevel@tonic-gate# 3130Sstevel@tonic-gate 3140Sstevel@tonic-gateecho "" >> $HEADER 3150Sstevel@tonic-gateecho "CIMBool" >> $HEADER 3160Sstevel@tonic-gateecho "(*setInstanceTable[])(CCIMObjectPath *, CCIMInstance *) = {" >> $HEADER 3170Sstevel@tonic-gatefor x in `cat $CLASSFILE` 3180Sstevel@tonic-gatedo 3190Sstevel@tonic-gate echo "cp_setInstance_$x," >> $HEADER 3200Sstevel@tonic-gatedone 3210Sstevel@tonic-gateecho "cp_setInstance_$LIBNAME};" >> $HEADER 3220Sstevel@tonic-gate 3230Sstevel@tonic-gate# 3240Sstevel@tonic-gate# *setPropertyTable 3250Sstevel@tonic-gate# 3260Sstevel@tonic-gate 3270Sstevel@tonic-gateecho "" >> $HEADER 3280Sstevel@tonic-gateecho "CIMBool" >> $HEADER 3290Sstevel@tonic-gateecho "(*setPropertyTable[])(CCIMObjectPath *, CCIMProperty *) = {" >> $HEADER 3300Sstevel@tonic-gatefor x in `cat $CLASSFILE` 3310Sstevel@tonic-gatedo 3320Sstevel@tonic-gate echo "cp_setProperty_$x," >> $HEADER 3330Sstevel@tonic-gatedone 3340Sstevel@tonic-gateecho "cp_setProperty_$LIBNAME};" >> $HEADER 3350Sstevel@tonic-gate 3360Sstevel@tonic-gate# 3370Sstevel@tonic-gate# *execQueryTable 3380Sstevel@tonic-gate# 3390Sstevel@tonic-gate 3400Sstevel@tonic-gateecho "" >> $HEADER 3410Sstevel@tonic-gateecho "CCIMInstanceList*" >> $HEADER 3420Sstevel@tonic-gateecho "(*execQueryTable[])(CCIMObjectPath *, char *, char *, char *, char*) = {" >> $HEADER 3430Sstevel@tonic-gatefor x in `cat $CLASSFILE` 3440Sstevel@tonic-gatedo 3450Sstevel@tonic-gate echo "cp_execQuery_$x," >> $HEADER 3460Sstevel@tonic-gatedone 3470Sstevel@tonic-gateecho "cp_execQuery_$LIBNAME};" >> $HEADER 3480Sstevel@tonic-gate 3490Sstevel@tonic-gate 3500Sstevel@tonic-gate# 3510Sstevel@tonic-gate# *associatorsTable 3520Sstevel@tonic-gate# 3530Sstevel@tonic-gate 3540Sstevel@tonic-gateecho "" >> $HEADER 3550Sstevel@tonic-gateecho "CCIMInstanceList*" >> $HEADER 3560Sstevel@tonic-gateecho "(*associatorsTable[])(CCIMObjectPath *, CCIMObjectPath *, char *, char *, char*) = {" >> $HEADER 3570Sstevel@tonic-gatefor x in `cat $ASSOCCLASSFILE` 3580Sstevel@tonic-gatedo 3590Sstevel@tonic-gate echo "cp_associators_$x," >> $HEADER 3600Sstevel@tonic-gatedone 3610Sstevel@tonic-gateecho "cp_associators_$LIBNAME};" >> $HEADER 3620Sstevel@tonic-gate 3630Sstevel@tonic-gate############################################################## 3640Sstevel@tonic-gate# 3650Sstevel@tonic-gate# *associatorNamesTable 3660Sstevel@tonic-gate# 3670Sstevel@tonic-gate 3680Sstevel@tonic-gateecho "" >> $HEADER 3690Sstevel@tonic-gateecho "CCIMObjectPathList*" >> $HEADER 3700Sstevel@tonic-gateecho "(*associatorNamesTable[])(CCIMObjectPath *, CCIMObjectPath *, char *, char *, char*) = {" >> $HEADER 3710Sstevel@tonic-gatefor x in `cat $ASSOCCLASSFILE` 3720Sstevel@tonic-gatedo 3730Sstevel@tonic-gate echo "cp_associatorNames_$x," >> $HEADER 3740Sstevel@tonic-gatedone 3750Sstevel@tonic-gateecho "cp_associatorNames_$LIBNAME};" >> $HEADER 3760Sstevel@tonic-gate 3770Sstevel@tonic-gate 3780Sstevel@tonic-gate############################################################## 3790Sstevel@tonic-gate# 3800Sstevel@tonic-gate# *referencesTable 3810Sstevel@tonic-gate# 3820Sstevel@tonic-gate 3830Sstevel@tonic-gateecho "" >> $HEADER 3840Sstevel@tonic-gateecho "CCIMObjectPathList*" >> $HEADER 3850Sstevel@tonic-gateecho "(*referencesTable[])(CCIMObjectPath *, CCIMObjectPath *, char *) = {" >> $HEADER 3860Sstevel@tonic-gatefor x in `cat $ASSOCCLASSFILE` 3870Sstevel@tonic-gatedo 3880Sstevel@tonic-gate echo "cp_references_$x," >> $HEADER 3890Sstevel@tonic-gatedone 3900Sstevel@tonic-gateecho "cp_references_$LIBNAME};" >> $HEADER 3910Sstevel@tonic-gate 3920Sstevel@tonic-gate############################################################## 3930Sstevel@tonic-gate# 3940Sstevel@tonic-gate# *referenceNamesTable 3950Sstevel@tonic-gate# 3960Sstevel@tonic-gate 3970Sstevel@tonic-gateecho "" >> $HEADER 3980Sstevel@tonic-gateecho "CCIMObjectPathList*" >> $HEADER 3990Sstevel@tonic-gateecho "(*referenceNamesTable[])(CCIMObjectPath *, CCIMObjectPath *, char *) = {" >> $HEADER 4000Sstevel@tonic-gatefor x in `cat $ASSOCCLASSFILE` 4010Sstevel@tonic-gatedo 4020Sstevel@tonic-gate echo "cp_referenceNames_$x," >> $HEADER 4030Sstevel@tonic-gatedone 4040Sstevel@tonic-gateecho "cp_referenceNames_$LIBNAME};" >> $HEADER 4050Sstevel@tonic-gate# 4060Sstevel@tonic-gate# Create Class Name table 4070Sstevel@tonic-gate# 4080Sstevel@tonic-gateecho "" >> $HEADER 4090Sstevel@tonic-gateecho "static char *classNameTable [] = {" >> $HEADER 4100Sstevel@tonic-gatefor x in `cat $CLASSFILE` 4110Sstevel@tonic-gatedo 412*556Smike_s echo "\"$x\"," >> $HEADER 4130Sstevel@tonic-gatedone 414*556Smike_secho "\"$LIBNAME\"};" >> $HEADER 4150Sstevel@tonic-gate 4160Sstevel@tonic-gate############################################################## 4170Sstevel@tonic-gate# 4180Sstevel@tonic-gate# Create Assoc Class Name table 4190Sstevel@tonic-gate# 4200Sstevel@tonic-gateecho "" >> $HEADER 4210Sstevel@tonic-gateecho "static char *assocclassNameTable [] = {" >> $HEADER 4220Sstevel@tonic-gatefor x in `cat $ASSOCCLASSFILE` 4230Sstevel@tonic-gatedo 424*556Smike_s echo "\"$x\"," >> $HEADER 4250Sstevel@tonic-gatedone 426*556Smike_secho "\"$LIBNAME\"};" >> $HEADER 427