(file) Return to RPMMakefile CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm

Diff for /pegasus/rpm/RPMMakefile between version 1.6.2.1 and 1.7

version 1.6.2.1, 2008/11/20 01:00:30 version 1.7, 2008/10/16 17:59:48
Line 71 
Line 71 
  
 ifeq ($(IDISTRO),RedHatEnterpriseServer) ifeq ($(IDISTRO),RedHatEnterpriseServer)
     DISTRO:=REDHAT     DISTRO:=REDHAT
     export PEGASUS_DISTRO_SUFFIX:= \      export PEGASUS_DISTRO_SUFFIX:=$(if $(filter $(RELEASE),4.92 4.93 5),el5,\
         $(if $(filter $(RELEASE),4.92 4.93 5),el5,xxx)          xxx)
 else else
     ifeq ($(findstring RedHat,$(IDISTRO)),RedHat)     ifeq ($(findstring RedHat,$(IDISTRO)),RedHat)
         DISTRO:=REDHAT         DISTRO:=REDHAT
Line 151 
Line 151 
         $(USAGE)"PEGASUS_BUILD_BRANCH - pegasus branch to build"         $(USAGE)"PEGASUS_BUILD_BRANCH - pegasus branch to build"
         $(USAGE)"                       HEAD is used if MAIN is specified"         $(USAGE)"                       HEAD is used if MAIN is specified"
  
 CORE_PATTERN = \"core*\"  
 define checkForCores  
         @if [ "`find $1 $2  -name $(CORE_PATTERN)`" != "" ]; \  
              then echo "*** One or more core files found:" \  
                 "`find $1 $2 -name $(CORE_PATTERN)`"; \  
                 exit 1; fi;  
         @if [ "$(PEGASUS_CORE_DIR)" != "" ] && \  
              [ "`find $(PEGASUS_CORE_DIR) -maxdepth 1 -name $(CORE_PATTERN)`" \  
                 != "" ]; then echo "*** One or more core files found:" \  
                 "`find $(PEGASUS_CORE_DIR) -maxdepth 1 -name $(CORE_PATTERN)`";\  
                 exit 1; fi  
 endef  
   
 exportSRC: exportSRC:
         @cvs -d:pserver:anon@cvs.opengroup.org:/cvs/MSB export -r $(PEGASUS_RPM_CVS_TAG) pegasus         @cvs -d:pserver:anon@cvs.opengroup.org:/cvs/MSB export -r $(PEGASUS_RPM_CVS_TAG) pegasus
  
Line 190 
Line 177 
         # Start cimserver         # Start cimserver
         -$(CIMSERVER_STOP_SERVICE)         -$(CIMSERVER_STOP_SERVICE)
         $(CIMSERVER_START_SERVICE)         $(CIMSERVER_START_SERVICE)
         $(call checkForCores,./,-maxdepth 1)          @check_for_core
  
         # Run some sanity tests         # Run some sanity tests
         # osinfo, cimserver -v, cimprovider -l -s, cimconfig -l -c etc         # osinfo, cimserver -v, cimprovider -l -s, cimconfig -l -c etc
         @$(ECHO) "+++++ Running sanity checks +++++"         @$(ECHO) "+++++ Running sanity checks +++++"
         @$(ECHO) "+++++ Running osinfo +++++"         @$(ECHO) "+++++ Running osinfo +++++"
         $(PEGASUS_BIN_DIR)/osinfo         $(PEGASUS_BIN_DIR)/osinfo
         $(call checkForCores,./,-maxdepth 1)          -@check_for_core
  
         @$(ECHO) "+++++ Running cimserver -v +++++"         @$(ECHO) "+++++ Running cimserver -v +++++"
         $(PEGASUS_SBIN_DIR)/cimserver -v         $(PEGASUS_SBIN_DIR)/cimserver -v
         $(call checkForCores,./,-maxdepth 1)          @check_for_core
  
         @$(ECHO) "+++++ Running cimconfig +++++"         @$(ECHO) "+++++ Running cimconfig +++++"
         $(PEGASUS_SBIN_DIR)/cimconfig -l -c         $(PEGASUS_SBIN_DIR)/cimconfig -l -c
         $(call checkForCores,./,-maxdepth 1)          @check_for_core
  
         @$(ECHO) "+++++ Running cimprovider +++++"         @$(ECHO) "+++++ Running cimprovider +++++"
         $(PEGASUS_BIN_DIR)/cimprovider -l -s         $(PEGASUS_BIN_DIR)/cimprovider -l -s
         $(call checkForCores,./,-maxdepth 1)          @check_for_core
  
         @$(ECHO) "+++++ Stopping cimserver +++++"         @$(ECHO) "+++++ Stopping cimserver +++++"
         @$(CIMSERVER_STOP_SERVICE)         @$(CIMSERVER_STOP_SERVICE)
         $(call checkForCores,./,-maxdepth 1)          @check_for_core
  
         @$(ECHO) "+++++ Starting cimserver +++++"         @$(ECHO) "+++++ Starting cimserver +++++"
         $(CIMSERVER_START_SERVICE)         $(CIMSERVER_START_SERVICE)
         $(call checkForCores,./,-maxdepth 1)          @check_for_core
  
         # Run samples         # Run samples
         @$(ECHO) "+++++ Running samples +++++"         @$(ECHO) "+++++ Running samples +++++"
Line 225 
Line 212 
         $(MAKE) --directory=$(PEGASUS_SAMPLES_DIR) -f Makefile setupSDK         $(MAKE) --directory=$(PEGASUS_SAMPLES_DIR) -f Makefile setupSDK
         $(MAKE) --directory=$(PEGASUS_SAMPLES_DIR) -f Makefile testSDK         $(MAKE) --directory=$(PEGASUS_SAMPLES_DIR) -f Makefile testSDK
         $(MAKE) --directory=$(PEGASUS_SAMPLES_DIR) -f Makefile unsetupSDK         $(MAKE) --directory=$(PEGASUS_SAMPLES_DIR) -f Makefile unsetupSDK
         $(call checkForCores,$(PEGASUS_SAMPLES_DIR),)          @check_for_core
  
         # Install the test RPM after running SDK tests. This is because         # Install the test RPM after running SDK tests. This is because
         # the test RPM over-writes the repository.         # the test RPM over-writes the repository.
Line 233 
Line 220 
         $(RPM) -ih $(PEGASUS_RPM_DIRECTORY)/RPMS/$(PLATFORM)/$(TEST_RPM)         $(RPM) -ih $(PEGASUS_RPM_DIRECTORY)/RPMS/$(PLATFORM)/$(TEST_RPM)
         $(MAKE) --directory=$(PEGASUS_TEST_DIR) -f Makefile setupTEST         $(MAKE) --directory=$(PEGASUS_TEST_DIR) -f Makefile setupTEST
         $(MAKE) --directory=$(PEGASUS_TEST_DIR) -f Makefile tests         $(MAKE) --directory=$(PEGASUS_TEST_DIR) -f Makefile tests
         $(call checkForCores,$(PEGASUS_TEST_DIR),)          @check_for_core
  
 # Install rpms # Install rpms
 install: install:
Line 247 
Line 234 
         -$(RPM) -e $(filter tog-pegasus-devel%,$(TOG_INSTALLED_RPMS))         -$(RPM) -e $(filter tog-pegasus-devel%,$(TOG_INSTALLED_RPMS))
         -$(RPM) -e $(filter tog-pegasus-2%,$(TOG_INSTALLED_RPMS))         -$(RPM) -e $(filter tog-pegasus-2%,$(TOG_INSTALLED_RPMS))
         -$(RM) -Rf tog-pegasus-$(PEGASUS_PRODUCT_VERSION).old         -$(RM) -Rf tog-pegasus-$(PEGASUS_PRODUCT_VERSION).old
         -$(MV) tog-pegasus-$(PEGASUS_PRODUCT_VERSION) tog-pegasus-$(PEGASUS_PRODUCT_VERSION).old          @if test -d tog-pegasus-$(PEGASUS_RPM_VERSION); then \
           $(MV) tog-pegasus-$(PEGASUS_PRODUCT_VERSION) tog-pegasus-$(PEGASUS_PRODUCT_VERSION).old; \
           fi
  
 buildRPM: cleanRPM createSRCRPM createBINRPM buildRPM: cleanRPM createSRCRPM createBINRPM
  


Legend:
Removed from v.1.6.2.1  
changed lines
  Added in v.1.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2