summaryrefslogtreecommitdiffstats
path: root/Makefile.Release
diff options
context:
space:
mode:
authordenise.eckstein <denise.eckstein>2005-02-21 22:37:24 +0000
committerdenise.eckstein <denise.eckstein>2005-02-21 22:37:24 +0000
commit5fc49e6502934f4e21991ae976937835d0d9e4a6 (patch)
tree643ed95678fbbf9a9d6a82e65c5c530296fce8e1 /Makefile.Release
parent9f06bf67d15b91342cd8f590dd7897a3fa92ed22 (diff)
downloadtog-pegasus-5fc49e6502934f4e21991ae976937835d0d9e4a6.zip
tog-pegasus-5fc49e6502934f4e21991ae976937835d0d9e4a6.tar.gz
tog-pegasus-5fc49e6502934f4e21991ae976937835d0d9e4a6.tar.xz
BUG#: 2736
TITLE: Need to add PEGASUS_OVERRIDE_PRODUCT_ID to env_var_XXX.status DESCRIPTION: Added an option to Makefile.Release to create a ProductVersion.h file using the following environment variable settings: PEGASUS_PRODUCT_NAME, PEGASUS_PRODUCT_VERSION, and PEGASUS_PRODUCT_STATUS.
Diffstat (limited to 'Makefile.Release')
-rw-r--r--Makefile.Release18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile.Release b/Makefile.Release
index bc3fc2e..935eec5 100644
--- a/Makefile.Release
+++ b/Makefile.Release
@@ -424,4 +424,22 @@ endif
$(MAKE) -f $(ROOT)/Makefile.Release createClientCertificateFiles
endif
+createProductVersionFile: FORCE
+ifdef PEGASUS_OVERRIDE_PRODUCT_ID
+ifdef PEGASUS_PRODUCT_NAME
+ifdef PEGASUS_PRODUCT_VERSION
+ifdef PEGASUS_PRODUCT_STATUS
+ @$(ECHO-E) "#ifndef Product_Version_h" > $(ROOT)/src/Pegasus/Common/ProductVersion.h
+ @$(ECHO-E) "#define Product_Version_h" >> $(ROOT)/src/Pegasus/Common/ProductVersion.h
+ @$(ECHO-E) " " >> $(ROOT)/src/Pegasus/Common/ProductVersion.h
+ @$(ECHO-E) "#define PEGASUS_PRODUCT_NAME "\""$(PEGASUS_PRODUCT_NAME)"\""" >> $(ROOT)/src/Pegasus/Common/ProductVersion.h
+ @$(ECHO-E) "#define PEGASUS_PRODUCT_VERSION "\""$(PEGASUS_PRODUCT_VERSION)"\""" >> $(ROOT)/src/Pegasus/Common/ProductVersion.h
+ @$(ECHO-E) "#define PEGASUS_PRODUCT_STATUS "\""$(PEGASUS_PRODUCT_STATUS)"\""" >> $(ROOT)/src/Pegasus/Common/ProductVersion.h
+ @$(ECHO-E) " " >> $(ROOT)/src/Pegasus/Common/ProductVersion.h
+ @$(ECHO-E) "#endif /* Product_Version_h */" >> $(ROOT)/src/Pegasus/Common/ProductVersion.h
+endif
+endif
+endif
+endif
+
include $(ROOT)/mak/commands.mak