changeset 12054:e395fe961b4a

7151595: Disable creation of db demos if NO_DEMOS is specified Reviewed-by: weijun, dholmes
author mduigou
date Thu, 08 Mar 2012 13:44:33 -0800
parents ed95387fe470
children 23364b73791c 90b9045428bd 2a7d7cc90f2f
files jdk/make/common/Release.gmk
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/make/common/Release.gmk	Thu Mar 08 14:22:15 2012 -0800
+++ b/jdk/make/common/Release.gmk	Thu Mar 08 13:44:33 2012 -0800
@@ -965,9 +965,13 @@
           ($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \
 	done
 	$(CP) $(ABS_DB_PATH)/README-JDK.html $(JDK_IMAGE_DIR)/db
+ifndef NO_DEMOS
 	$(RM) -rf $(DEMODIR)/db
 	$(MV) $(JDK_IMAGE_DIR)/db/demo $(DEMODIR)/db
 	$(CP) $(ABS_DB_PATH)/README-JDK-DEMOS.html $(DEMODIR)/db/
+else
+	$(RM) -rf $(JDK_IMAGE_DIR)/db/demo
+endif
 	$(RM) $(JDK_IMAGE_DIR)/db/index.html $(JDK_IMAGE_DIR)/db/register.html
 endif