8211016: make images does not update jdk/lib/src.zip with latest changes
Reviewed-by: ihse
This commit is contained in:
parent
4281bf2e38
commit
0a976502a7
@ -392,9 +392,10 @@ ifneq ($(DISABLE_CACHE_FIND), true)
|
|||||||
#
|
#
|
||||||
# Param 1 - Dirs to find in
|
# Param 1 - Dirs to find in
|
||||||
# Param 2 - (optional) specialization. Normally "-a \( ... \)" expression.
|
# Param 2 - (optional) specialization. Normally "-a \( ... \)" expression.
|
||||||
|
# Param 3 - (optional) options to find.
|
||||||
define CacheFind
|
define CacheFind
|
||||||
$(if $(filter-out $(addsuffix /%,- $(FIND_CACHE_DIRS)) $(FIND_CACHE_DIRS),$1), \
|
$(if $(filter-out $(addsuffix /%,- $(FIND_CACHE_DIRS)) $(FIND_CACHE_DIRS),$1), \
|
||||||
$(if $(wildcard $1), $(shell $(FIND) $(wildcard $1) \( -type f -o -type l \) $2 \
|
$(if $(wildcard $1), $(shell $(FIND) $3 $(wildcard $1) \( -type f -o -type l \) $2 \
|
||||||
| $(TR) ' ' '?')), \
|
| $(TR) ' ' '?')), \
|
||||||
$(filter $(addsuffix /%,$(patsubst %/,%,$1)) $1,$(FIND_CACHE)))
|
$(filter $(addsuffix /%,$(patsubst %/,%,$1)) $1,$(FIND_CACHE)))
|
||||||
endef
|
endef
|
||||||
|
@ -62,8 +62,9 @@ define SetupZipArchiveBody
|
|||||||
$1_FIND_LIST := $$($1_SRC)
|
$1_FIND_LIST := $$($1_SRC)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Find all files in the source tree.
|
# Find all files in the source tree. Follow symlinks in this find since that is
|
||||||
$1_ALL_SRCS := $$(call not-containing,_the.,$$(call CacheFind,$$($1_FIND_LIST)))
|
# what zip does.
|
||||||
|
$1_ALL_SRCS := $$(call not-containing,_the.,$$(call CacheFind,$$($1_FIND_LIST), , -L))
|
||||||
|
|
||||||
# Filter on suffixes if set
|
# Filter on suffixes if set
|
||||||
ifneq ($$($1_SUFFIXES),)
|
ifneq ($$($1_SUFFIXES),)
|
||||||
@ -126,10 +127,14 @@ define SetupZipArchiveBody
|
|||||||
$$($1_ZIP) : $$($1_ALL_SRCS) $$($1_EXTRA_DEPS)
|
$$($1_ZIP) : $$($1_ALL_SRCS) $$($1_EXTRA_DEPS)
|
||||||
$$(call LogWarn, Updating $$($1_NAME))
|
$$(call LogWarn, Updating $$($1_NAME))
|
||||||
$$(call MakeTargetDir)
|
$$(call MakeTargetDir)
|
||||||
$$(foreach s,$$($1_SRC),(cd $$s && $(ZIPEXE) -qru $$($1_ZIP_OPTIONS) $$@ . \
|
$$(foreach s,$$($1_SRC), $$(call ExecuteWithLog, \
|
||||||
$$($1_ZIP_INCLUDES) $$($1_ZIP_EXCLUDES) -x \*_the.\* \
|
$$(SUPPORT_OUTPUTDIR)/zip/$$(patsubst $$(OUTPUTDIR)/%,%, $$@), \
|
||||||
$$($1_ZIP_EXCLUDES_$$s) \
|
(cd $$s && $(ZIPEXE) -qru $$($1_ZIP_OPTIONS) $$@ . \
|
||||||
|| test "$$$$?" = "12" )$$(NEWLINE)) true
|
$$($1_ZIP_INCLUDES) $$($1_ZIP_EXCLUDES) -x \*_the.\* \
|
||||||
|
$$($1_ZIP_EXCLUDES_$$s) \
|
||||||
|
|| test "$$$$?" = "12" \
|
||||||
|
))$$(NEWLINE) \
|
||||||
|
) true \
|
||||||
$(TOUCH) $$@
|
$(TOUCH) $$@
|
||||||
|
|
||||||
# Add zip to target list
|
# Add zip to target list
|
||||||
|
Loading…
Reference in New Issue
Block a user