7151595: Disable creation of db demos if NO_DEMOS is specified
authormduigou
Thu, 08 Mar 2012 13:44:33 -0800
changeset 12054 e395fe961b4a
parent 12053 ed95387fe470
child 12055 23364b73791c
child 12180 90b9045428bd
child 12190 2a7d7cc90f2f
7151595: Disable creation of db demos if NO_DEMOS is specified Reviewed-by: weijun, dholmes
jdk/make/common/Release.gmk
--- 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