(file) Return to Makefile.interop CVS log (file) (dir) Up to [Pegasus] / pegasus

  1 karl  1.3.4.2 #//%LICENSE////////////////////////////////////////////////////////////////
  2               #//
  3               #// Licensed to The Open Group (TOG) under one or more contributor license
  4               #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5               #// this work for additional information regarding copyright ownership.
  6               #// Each contributor licenses this file to you under the OpenPegasus Open
  7               #// Source License; you may not use this file except in compliance with the
  8               #// License.
  9               #//
 10               #// Permission is hereby granted, free of charge, to any person obtaining a
 11               #// copy of this software and associated documentation files (the "Software"),
 12               #// to deal in the Software without restriction, including without limitation
 13               #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14               #// and/or sell copies of the Software, and to permit persons to whom the
 15               #// Software is furnished to do so, subject to the following conditions:
 16               #//
 17               #// The above copyright notice and this permission notice shall be included
 18               #// in all copies or substantial portions of the Software.
 19               #//
 20               #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21               #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 karl  1.3.4.2 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23               #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24               #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25               #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26               #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27               #//
 28               #//////////////////////////////////////////////////////////////////////////
 29               
 30               ##########################################################################
 31               #
 32               # This makefile is used in pegasus/Makefile. 
 33               # Added as part of PEP304(renaming interop namespace), build time option.
 34               # There are many test cases and result files where namespace name
 35               # root/PG_InterOp is hardcoded. So this searches for root/PG_InterOp
 36               # and changes that to "interop" or "root/interop". If any new test cases
 37               # are added with hardcoded string "root/PG_InterOp", add the file here.
 38               #
 39               # This uses mu replace internally. The original files are all saved as
 40               # filename.save. These file can be restored by running
 41               # make -f Makefile.interop restore
 42               # in future if any one using root/PG_Interop in any of .master or .xml files
 43 karl  1.3.4.2 # they should add them in the below lists.
 44               # Its a good practice to use PEGASUS_NAMESPACENAME_INTEROP variable in .cpp
 45               # and .h files ,instead of hard coded value of root/PG_InterOp
 46               # In make files PEGASUS_INTEROP_NAMESPACE build variable value can be used.
 47               #
 48               ##########################################################################
 49               
 50               
 51               include $(PEGASUS_ROOT)/mak/config.mak
 52               include $(PEGASUS_ROOT)/mak/commands.mak
 53               
 54               
 55               LIST:=src/slp/tests/slptests/SLP_SA_Tests.cpp \
 56               src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Client/testIndications.java \
 57               src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Providers/Properties/JMPIPropertyProvider.java \
 58               src/Providers/TestProviders/CLITestProvider/tests/namespacetestresult.master \
 59               src/Pegasus/msg/Server/pegasusServer_en.txt \
 60               src/SDK/samples/Clients/DefaultC++/SendTestIndications/SendTestIndications.cpp
 61               
 62               LISTXML:=src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingInstanceNameClassName01.xml \
 63               src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/DuplicateProperty01.xml \
 64 karl  1.3.4.2 src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingPropertyReferenceEndTag01.xml \
 65               src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingValueArray01.xml \
 66               src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValueEndTag01.xml \
 67               src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Static/ErrorXml/MissingKeyValue01.xml \
 68               src/Providers/sample/SNMPIndicationProvider/nsaFilter.xml \
 69               src/Providers/sample/SNMPIndicationProvider/nsaProvider.xml \
 70               src/Providers/sample/SNMPIndicationProvider/nsaSubXmlLocal.xml \
 71               src/Providers/sample/SNMPIndicationProvider/nsaHandlerV1.xml \
 72               src/Providers/sample/SNMPIndicationProvider/nsaHandlerV2.xml \
 73               src/Providers/sample/SNMPIndicationProvider/nsaCapability.xml \
 74               src/Providers/sample/SNMPIndicationProvider/nsaHandlerXmlLocal.xml \
 75               src/Providers/sample/SNMPIndicationProvider/nsaSubXmlRemote.xml \
 76               src/Providers/sample/SNMPIndicationProvider/nsaModule.xml \
 77               src/Providers/sample/SNMPIndicationProvider/nsaSubv1.xml \
 78               src/Providers/sample/SNMPIndicationProvider/nsaSubv2.xml \
 79               src/Providers/sample/SNMPIndicationProvider/nsaHandlerXmlRemote.xml \
 80               test/wetest/static/ErrorXml/MissingInstanceNameClassName01.xml \
 81               test/wetest/static/ErrorXml/DuplicateProperty01.xml \
 82               test/wetest/static/ErrorXml/MissingPropertyReferenceEndTag01.xml \
 83               test/wetest/static/ErrorXml/MissingValueArray01.xml \
 84               test/wetest/static/ErrorXml/MissingKeyValueEndTag01.xml \
 85 karl  1.3.4.2 test/wetest/static/ErrorXml/MissingKeyValue01.xml
 86               
 87               
 88               replace: 
 89               ifeq ($(PEGASUS_INTEROP_NAMESPACE),root/interop)
 90               	@$(foreach i,$(LIST) $(LISTXML), mu replace $i 'PG_InterOp' 'interop'; )
 91                       @$(ECHO) "Makefile.interop: Replacing the PG_InterOp with interop."
 92               else
 93               ifeq ($(PEGASUS_INTEROP_NAMESPACE),interop)
 94               	@$(foreach i,$(LISTXML), mu replace $i '<NAMESPACE NAME="root"/>' '<!--NAMESPACE NAME="root"/-->'; \
 95                              mu replace $i 'PG_InterOp' $(PEGASUS_INTEROP_NAMESPACE); )
 96               	@$(foreach i,$(LIST), mu replace $i 'root/PG_InterOp' $(PEGASUS_INTEROP_NAMESPACE); )
 97                       @$(ECHO) "Makefile.interop: Replacing root/interop with the interop."
 98               endif
 99               endif
100                       @$(ECHO) "Makefile.interop: Replacing is over."
101               
102               # This restore command can be used to restore all the files mentioned above 
103               # with the previously set interop namespace.
104               restore:
105               ifeq ($(PEGASUS_INTEROP_NAMESPACE),root/interop)
106 karl  1.3.4.2 	@$(foreach i,$(LIST) $(LISTXML), mu replace $i 'interop' 'PG_InterOp'; )
107               else
108               ifeq ($(PEGASUS_INTEROP_NAMESPACE),interop)
109               	@$(foreach i,$(LISTXML), mu replace $i '<!--NAMESPACE NAME="root"/-->' '<NAMESPACE NAME="root"/>'; \
110                       mu replace $i 'interop' 'PG_InterOp');
111               	@$(foreach i,$(LIST), mu replace $i 'interop' 'root/PG_InterOp');
112               
113               endif
114               endif
115               	

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2