8013403: Update JDK8 with Java DB 10.10.1.1
Drop Java DB 10.10.1.1 bits into JDK 8 and update image builds Reviewed-by: tbell
This commit is contained in:
parent
0872993c6c
commit
d4f6e1c9d3
@ -969,26 +969,35 @@ else
|
|||||||
|
|
||||||
# Create the list of db *.zip files to bundle with jdk
|
# Create the list of db *.zip files to bundle with jdk
|
||||||
ABS_DB_PATH :=$(call FullPath,$(CLOSED_SHARE_SRC)/db)
|
ABS_DB_PATH :=$(call FullPath,$(CLOSED_SHARE_SRC)/db)
|
||||||
DB_ZIP_LIST = $(shell $(LS) $(ABS_DB_PATH)/*.zip 2>/dev/null)
|
DB_BINARY_BUNDLE = $(shell $(LS) $(ABS_DB_PATH)/db-derby-*-bin.zip 2>/dev/null)
|
||||||
|
|
||||||
# Java DB image. Move the Java DB demo directory into the JDK's demo
|
# Java DB image. Move the Java DB demo directory into the JDK's demo
|
||||||
# dir and in the process, rename it to db. Also remove index.html,
|
# dir and in the process, rename it to db. Also remove index.html,
|
||||||
# since it presumes docs are co-located. Also remove register.html (no
|
# since it presumes docs are co-located, javadoc, docs and tests and
|
||||||
# longer relevant).
|
# update the copyright year of the JDK READMEs to that of the release.
|
||||||
initial-image-jdk-db: $(DB_ZIP_LIST)
|
initial-image-jdk-db: $(DB_BINARY_BUNDLE)
|
||||||
$(MKDIR) -p $(JDK_IMAGE_DIR)/db
|
$(MKDIR) -p $(JDK_IMAGE_DIR)/db
|
||||||
for d in $(DB_ZIP_LIST); do \
|
$(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $(DB_BINARY_BUNDLE)
|
||||||
($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \
|
$(CD) $(JDK_IMAGE_DIR)/db && $(MV) db-derby-*-bin/* .
|
||||||
done
|
$(CD) $(JDK_IMAGE_DIR)/db && $(RM) -r db-derby-*-bin
|
||||||
$(CP) $(ABS_DB_PATH)/README-JDK.html $(JDK_IMAGE_DIR)/db
|
$(CAT) $(ABS_DB_PATH)/README-JDK.html | \
|
||||||
|
$(SED) "s/XXXX/$(shell cat $(JDK_TOPDIR)/src/closed/share/db/COPYRIGHTYEAR)/" > \
|
||||||
|
$(JDK_IMAGE_DIR)/db/README-JDK.html
|
||||||
|
$(CAT) $(ABS_DB_PATH)/3RDPARTY | \
|
||||||
|
$(SED) "s/XXXX/$(shell cat $(JDK_TOPDIR)/src/closed/share/db/COPYRIGHTYEAR)/" > \
|
||||||
|
$(JDK_IMAGE_DIR)/db/3RDPARTY
|
||||||
ifndef NO_DEMOS
|
ifndef NO_DEMOS
|
||||||
$(RM) -rf $(DEMODIR)/db
|
$(RM) -r $(DEMODIR)/db
|
||||||
$(MV) $(JDK_IMAGE_DIR)/db/demo $(DEMODIR)/db
|
$(MV) $(JDK_IMAGE_DIR)/db/demo $(DEMODIR)/db
|
||||||
$(CP) $(ABS_DB_PATH)/README-JDK-DEMOS.html $(DEMODIR)/db/
|
$(CAT) $(ABS_DB_PATH)/README-JDK-DEMOS.html | \
|
||||||
|
$(SED) "s/XXXX/$(shell cat $(JDK_TOPDIR)/src/closed/share/db/COPYRIGHTYEAR)/" > \
|
||||||
|
$(DEMODIR)/db/README-JDK-DEMOS.html
|
||||||
else
|
else
|
||||||
$(RM) -rf $(JDK_IMAGE_DIR)/db/demo
|
$(RM) -r $(JDK_IMAGE_DIR)/db/demo
|
||||||
endif
|
endif
|
||||||
$(RM) $(JDK_IMAGE_DIR)/db/index.html $(JDK_IMAGE_DIR)/db/register.html
|
@# remove stuff from original distro we don't want
|
||||||
|
$(RM) $(JDK_IMAGE_DIR)/db/index.html $(JDK_IMAGE_DIR)/db/KEYS
|
||||||
|
$(RM) -r $(JDK_IMAGE_DIR)/db/{docs,javadoc,test}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The launcher source files we need for src.zip
|
# The launcher source files we need for src.zip
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
@ -432,20 +433,22 @@ endif
|
|||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
ifndef OPENJDK
|
ifndef OPENJDK
|
||||||
DB_DEMO_ZIPFILE := $(wildcard $(JDK_TOPDIR)/src/closed/share/db/*demo*.zip)
|
DB_DEMO_ZIPFILE := $(wildcard $(JDK_TOPDIR)/src/closed/share/db/*.zip)
|
||||||
|
|
||||||
$(JDK_OUTPUTDIR)/demo/_the.db.unzipped: $(DB_DEMO_ZIPFILE)
|
$(JDK_OUTPUTDIR)/demo/_the.db.unzipped: $(DB_DEMO_ZIPFILE)
|
||||||
$(MKDIR) -p $(@D)
|
$(MKDIR) -p $(@D)
|
||||||
$(RM) -r $(JDK_OUTPUTDIR)/demo/db $(JDK_OUTPUTDIR)/demo/demo
|
$(RM) -r $(JDK_OUTPUTDIR)/demo/db $(JDK_OUTPUTDIR)/demo/demo
|
||||||
$(CD) $(JDK_OUTPUTDIR)/demo && $(UNZIP) -q -o $<
|
$(CD) $(JDK_OUTPUTDIR)/demo && $(UNZIP) -q -o $<
|
||||||
$(MV) $(JDK_OUTPUTDIR)/demo/demo $(JDK_OUTPUTDIR)/demo/db
|
$(MV) $(JDK_OUTPUTDIR)/demo/db-derby-*-bin/demo $(JDK_OUTPUTDIR)/demo/db
|
||||||
|
$(CD) $(JDK_OUTPUTDIR)/demo && $(RM) -r db-derby-*-bin
|
||||||
$(TOUCH) $@
|
$(TOUCH) $@
|
||||||
|
|
||||||
# Copy this after the unzip above to avoid race with directory creation and mv command.
|
# Copy this after the unzip above to avoid race with directory creation and mv command.
|
||||||
$(JDK_OUTPUTDIR)/demo/db/README-JDK-DEMOS.html: \
|
$(JDK_OUTPUTDIR)/demo/db/README-JDK-DEMOS.html: \
|
||||||
$(JDK_TOPDIR)/src/closed/share/db/README-JDK-DEMOS.html \
|
$(JDK_TOPDIR)/src/closed/share/db/README-JDK-DEMOS.html \
|
||||||
| $(JDK_OUTPUTDIR)/demo/_the.db.unzipped
|
| $(JDK_OUTPUTDIR)/demo/_the.db.unzipped
|
||||||
$(call install-file)
|
$(MKDIR) -p $(@D)
|
||||||
|
$(CAT) $< | $(SED) "s/XXXX/$(shell cat $(JDK_TOPDIR)/src/closed/share/db/COPYRIGHTYEAR)/" > $@
|
||||||
|
|
||||||
BUILD_DEMOS += $(JDK_OUTPUTDIR)/demo/_the.db.unzipped $(JDK_OUTPUTDIR)/demo/db/README-JDK-DEMOS.html
|
BUILD_DEMOS += $(JDK_OUTPUTDIR)/demo/_the.db.unzipped $(JDK_OUTPUTDIR)/demo/db/README-JDK-DEMOS.html
|
||||||
endif
|
endif
|
||||||
|
@ -526,17 +526,22 @@ ifndef OPENJDK
|
|||||||
$(IMAGES_OUTPUTDIR)/_unzip/%.unzipped: $(JDK_TOPDIR)/src/closed/share/db/%
|
$(IMAGES_OUTPUTDIR)/_unzip/%.unzipped: $(JDK_TOPDIR)/src/closed/share/db/%
|
||||||
$(ECHO) Unzipping $(patsubst $(SRC_ROOT)/%,%,$<)
|
$(ECHO) Unzipping $(patsubst $(SRC_ROOT)/%,%,$<)
|
||||||
$(MKDIR) -p $(JDK_IMAGE_DIR)/db
|
$(MKDIR) -p $(JDK_IMAGE_DIR)/db
|
||||||
cd $(JDK_IMAGE_DIR)/db && $(UNZIP) -q -o $< -x index.html 2> /dev/null
|
cd $(JDK_IMAGE_DIR)/db && $(UNZIP) -q -o $< -x */index.html */KEYS */test/* *javadoc/* */docs/* */demo/* 2> /dev/null
|
||||||
|
cd $(JDK_IMAGE_DIR)/db && $(MV) db-derby-*-bin/* . && $(RM) -r db-derby-*-bin
|
||||||
$(MKDIR) -p $(@D)
|
$(MKDIR) -p $(@D)
|
||||||
$(TOUCH) $@
|
$(TOUCH) $@
|
||||||
|
|
||||||
$(JDK_IMAGE_DIR)/db/README-JDK.html: $(JDK_TOPDIR)/src/closed/share/db/README-JDK.html
|
$(JDK_IMAGE_DIR)/db/README-JDK.html: $(JDK_TOPDIR)/src/closed/share/db/README-JDK.html
|
||||||
$(ECHO) $(LOG_INFO) Copying '$(patsubst $(OUTPUT_ROOT)/%,%,$@)'
|
$(ECHO) $(LOG_INFO) Copying '$(patsubst $(OUTPUT_ROOT)/%,%,$@)'
|
||||||
$(install-file)
|
$(CAT) $< | $(SED) "s/XXXX/$(shell cat $(JDK_TOPDIR)/src/closed/share/db/COPYRIGHTYEAR)/" > $@
|
||||||
|
|
||||||
|
$(JDK_IMAGE_DIR)/db/3RDPARTY: $(JDK_TOPDIR)/src/closed/share/db/3RDPARTY
|
||||||
|
$(ECHO) $(LOG_INFO) Copying '$(patsubst $(OUTPUT_ROOT)/%,%,$@)'
|
||||||
|
$(CAT) $< | $(SED) "s/XXXX/$(shell cat $(JDK_TOPDIR)/src/closed/share/db/COPYRIGHTYEAR)/" > $@
|
||||||
|
|
||||||
JDK_DB_TARGETS := $(patsubst $(JDK_TOPDIR)/src/closed/share/db/%,$(IMAGES_OUTPUTDIR)/_unzip/%.unzipped,\
|
JDK_DB_TARGETS := $(patsubst $(JDK_TOPDIR)/src/closed/share/db/%,$(IMAGES_OUTPUTDIR)/_unzip/%.unzipped,\
|
||||||
$(call not-containing,demo,$(wildcard $(JDK_TOPDIR)/src/closed/share/db/*.zip))) \
|
$(wildcard $(JDK_TOPDIR)/src/closed/share/db/*.zip)) \
|
||||||
$(JDK_IMAGE_DIR)/db/README-JDK.html
|
$(JDK_IMAGE_DIR)/db/README-JDK.html $(JDK_IMAGE_DIR)/db/3RDPARTY
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user