(file) Return to create_interface_files CVS log (file) (dir) Up to [Pegasus] / pegasus / src / utils / schemachangescripts

File: [Pegasus] / pegasus / src / utils / schemachangescripts / create_interface_files (download)
Revision: 1.2, Tue Dec 16 18:58:13 2008 UTC (15 years, 6 months ago) by kumpf
Branch: MAIN
CVS Tags: preBug9676, postBug9676, TASK_PEP317_1JUNE_2013, TASK-TASK_PEP362_RestfulService_branch-root, TASK-TASK_PEP362_RestfulService_branch-merged_out_from_trunk, TASK-TASK_PEP362_RestfulService_branch-merged_in_to_trunk, TASK-TASK_PEP362_RestfulService_branch-merged_in_from_branch, TASK-TASK_PEP362_RestfulService_branch-branch, TASK-PEP362_RestfulService-root, TASK-PEP362_RestfulService-merged_out_to_branch, TASK-PEP362_RestfulService-merged_out_from_trunk, TASK-PEP362_RestfulService-merged_in_to_trunk, TASK-PEP362_RestfulService-merged_in_from_branch, TASK-PEP362_RestfulService-branch, TASK-PEP348_SCMO-root, TASK-PEP348_SCMO-merged_out_to_branch, TASK-PEP348_SCMO-merged_out_from_trunk, TASK-PEP348_SCMO-merged_in_to_trunk, TASK-PEP348_SCMO-merged_in_from_branch, TASK-PEP348_SCMO-branch, TASK-PEP317_pullop-root, TASK-PEP317_pullop-merged_out_to_branch, TASK-PEP317_pullop-merged_out_from_trunk, TASK-PEP317_pullop-merged_in_to_trunk, TASK-PEP317_pullop-merged_in_from_branch, TASK-PEP317_pullop-branch, RELEASE_2_9_2-RC2, RELEASE_2_9_2-RC1, RELEASE_2_9_2, RELEASE_2_9_1-RC1, RELEASE_2_9_1, RELEASE_2_9_0-RC1, RELEASE_2_9_0, RELEASE_2_9-root, RELEASE_2_9-branch, RELEASE_2_14_1, RELEASE_2_14_0-RC2, RELEASE_2_14_0-RC1, RELEASE_2_14_0, RELEASE_2_14-root, RELEASE_2_14-branch, RELEASE_2_13_0-RC2, RELEASE_2_13_0-RC1, RELEASE_2_13_0-FC, RELEASE_2_13_0, RELEASE_2_13-root, RELEASE_2_13-branch, RELEASE_2_12_1-RC1, RELEASE_2_12_1, RELEASE_2_12_0-RC1, RELEASE_2_12_0-FC, RELEASE_2_12_0, RELEASE_2_12-root, RELEASE_2_12-branch, RELEASE_2_11_2-RC1, RELEASE_2_11_2, RELEASE_2_11_1-RC1, RELEASE_2_11_1, RELEASE_2_11_0-RC1, RELEASE_2_11_0-FC, RELEASE_2_11_0, RELEASE_2_11-root, RELEASE_2_11-branch, RELEASE_2_10_1-RC1, RELEASE_2_10_1, RELEASE_2_10_0-RC2, RELEASE_2_10_0-RC1, RELEASE_2_10_0, RELEASE_2_10-root, RELEASE_2_10-branch, PREAUG25UPDATE, POSTAUG25UPDATE, HPUX_TEST, HEAD, CIMRS_WORK_20130824, BeforeUpdateToHeadOct82011
Changes since 1.1: +16 -16 lines
BUG#: 8273
TITLE: Remove trailing space characters
DESCRIPTION: Remove meaningless whitespace.

#!/bin/bash
###########################################################################
##
## create_interface_files script to create CIM Schema "interface" files:
##
## This file was used when CIM Schema Version 2.11 was installed.
## It is not inteneded for general use. It is available here as
## further documentation of the CIM Schema install process and for
## future reference when new CIM Schema versions are installed.
##
## This bash shell script file creates "interface" files for the new
## DMTF CIM Schema Version 2.11 to make them compatible with the
## OpenPegasus build enviroment that has been used for previous versions.
##
##
## The following files are needed and will each include the appropriate
## DMTF files.
##
## CIM_Schema
## CIM_Event
## CIM_Core
## Core_Qualifiers
## CIM_Interop
##
## CIM_Physical.mof
## CIM_Schema.mof
##
##########################################################################

##########################################################################
##
## FUNCTION DEFINITIONS
##
##########################################################################

##########################################
## INSERT_LICENSE ()
##
function INSERT_LICENSE()
{
FILE=$1 ;
cat ../../doc/license.txt > ${FILE}.mof ;
##### cat header_add.txt | sed 's/FILE_NAME/${FILE}/' >> ${FILE}.mof ;
return 0 ;
}

##########################################
## INSERT_BLANK_LINE ()
##
function INSERT_BLANK_LINE ()
{
FILE=$1 ;
echo " " >> ${FILE}.mof ;
}

##########################################
## INSERT_LINE ()
##
function INSERT_LINE ()
{
FILE=$1 ;
echo "$2" >> ${FILE}.mof ;
}

##########################################
## INSERT_EXTRACTED_INCLUDES ()
##
## copy all include lines for this file from cimv210.mof changing
## them to add the DMTF directory.
##
## IE: The following line for the CIM_Core.mof file
##
##    #pragma include ("Core\CIM_ManagedElement.mof")
##
##     gets changed to the following:
##
##    #pragma include ("DMTF/Core\CIM_ManagedElement.mof")
##
##
function INSERT_EXTRACTED_INCLUDES ()
{
FILE=$1 ;
NAME=$2 ;

grep "(\"${NAME}" DMTF/cimv211.mof |  sed 's/include ("/include ("DMTF\//' >> ${FILE}.mof ;
return 0 ;
}

##########################################################################
##
## Create the files
##
##########################################################################

#### create  Core_Qualifiers.mof
INSERT_LICENSE Core_Qualifiers ;
cat header_add.txt | sed 's/FILE_NAME/Core_Qualifiers/' >> Core_Qualifiers.mof
INSERT_BLANK_LINE Core_Qualifiers ;
INSERT_LINE Core_Qualifiers "#pragma include (\"DMTF/qualifiers.mof\")"
INSERT_BLANK_LINE Core_Qualifiers ;


#### create CIM_Schema.mof
INSERT_LICENSE CIM_Schema ;
cat header_add.txt | sed 's/FILE_NAME/CIM_Schema/' >> CIM_Schema.mof
INSERT_BLANK_LINE CIM_Schema ;
INSERT_LINE CIM_Schema "#pragma include (\"DMTF/cimv211.mof\")"
INSERT_BLANK_LINE CIM_Schema ;

#### create CIM_Core.mof
INSERT_LICENSE CIM_Core ;
cat header_add.txt | sed 's/FILE_NAME/CIM_Core/' >> CIM_Core.mof
INSERT_BLANK_LINE CIM_Core ;
INSERT_LINE CIM_Core  "#pragma include (\"DMTF/qualifiers.mof\")" ;
INSERT_BLANK_LINE CIM_Core ;
INSERT_EXTRACTED_INCLUDES CIM_Core Core ;
INSERT_BLANK_LINE CIM_Core ;


#### create CIM_Event.mof
INSERT_LICENSE CIM_Event ;
cat header_add.txt | sed 's/FILE_NAME/CIM_Event/' >> CIM_Event.mof
INSERT_BLANK_LINE CIM_Event ;
INSERT_EXTRACTED_INCLUDES CIM_Event Event ;
INSERT_BLANK_LINE CIM_Event ;


#### create CIM_Interop.mof
INSERT_LICENSE CIM_Interop ;
cat header_add.txt | sed 's/FILE_NAME/CIM_Interop/' >> CIM_Interop.mof
INSERT_BLANK_LINE CIM_Interop ;
INSERT_EXTRACTED_INCLUDES CIM_Interop Interop ;
INSERT_BLANK_LINE CIM_Interop ;


############################################################
#### The following are all required for the make testrepository

#### create CIM_Physical.mof
INSERT_LICENSE CIM_Physical ;
cat header_add.txt | sed 's/FILE_NAME/CIM_Physical/' >> CIM_Physical.mof
INSERT_BLANK_LINE CIM_Physical ;
INSERT_EXTRACTED_INCLUDES CIM_Physical Physical ;
INSERT_BLANK_LINE CIM_Physical ;


#### create CIM_System.mof
INSERT_LICENSE CIM_System ;
cat header_add.txt | sed 's/FILE_NAME/CIM_System/' >> CIM_System.mof
INSERT_BLANK_LINE CIM_System ;
INSERT_EXTRACTED_INCLUDES CIM_System System ;
INSERT_BLANK_LINE CIM_System ;




No CVS admin address has been configured
Powered by
ViewCVS 0.9.2