8025921: Make LOG=debug output more readable
Reviewed-by: tbell, ihse
This commit is contained in:
parent
952d9ce87c
commit
1aa36eafd6
@ -86,7 +86,7 @@ define SetupArchive
|
|||||||
# NOTE: $2 is dependencies, not a named argument!
|
# NOTE: $2 is dependencies, not a named argument!
|
||||||
$(foreach i,3 4 5 6 7 8 9 10 11 12 13 14 15, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
|
$(foreach i,3 4 5 6 7 8 9 10 11 12 13 14 15, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
|
||||||
$(call LogSetupMacroEntry,SetupArchive($1),<dependencies>,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15))
|
$(call LogSetupMacroEntry,SetupArchive($1),<dependencies>,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15))
|
||||||
$(if $(findstring $(LOG_LEVEL),debug trace), $(info *[2] <dependencies> = $(strip $2)))
|
$(if $(findstring $(LOG_LEVEL),trace), $(info *[2] <dependencies> = $(strip $2)))
|
||||||
$(if $(16),$(error Internal makefile error: Too many arguments to SetupArchive, please update JavaCompilation.gmk))
|
$(if $(16),$(error Internal makefile error: Too many arguments to SetupArchive, please update JavaCompilation.gmk))
|
||||||
|
|
||||||
$1_JARMAIN:=$(strip $$($1_JARMAIN))
|
$1_JARMAIN:=$(strip $$($1_JARMAIN))
|
||||||
@ -111,9 +111,9 @@ define SetupArchive
|
|||||||
ifeq ($$(word 20,$$($1_GREP_INCLUDE_PATTERNS)),)
|
ifeq ($$(word 20,$$($1_GREP_INCLUDE_PATTERNS)),)
|
||||||
$1_GREP_INCLUDES:=| $(GREP) $$(patsubst %,$(SPACE)-e$(SPACE)$(DQUOTE)%$(DQUOTE),$$($1_GREP_INCLUDE_PATTERNS))
|
$1_GREP_INCLUDES:=| $(GREP) $$(patsubst %,$(SPACE)-e$(SPACE)$(DQUOTE)%$(DQUOTE),$$($1_GREP_INCLUDE_PATTERNS))
|
||||||
else
|
else
|
||||||
$1_GREP_INCLUDE_OUTPUT:=$(RM) $$($1_BIN)/_the.$$($1_JARNAME)_include && \
|
$1_GREP_INCLUDE_OUTPUT:=$(RM) $$($1_BIN)/_the.$$($1_JARNAME)_include $$(NEWLINE) \
|
||||||
$$(strip $$(call ListPathsSafely,$1_GREP_INCLUDE_PATTERNS,\n, \
|
$$(call ListPathsSafely,$1_GREP_INCLUDE_PATTERNS,\n, \
|
||||||
>> $$($1_BIN)/_the.$$($1_JARNAME)_include))
|
>> $$($1_BIN)/_the.$$($1_JARNAME)_include)
|
||||||
$1_GREP_INCLUDES:=| $(GREP) -f $$($1_BIN)/_the.$$($1_JARNAME)_include
|
$1_GREP_INCLUDES:=| $(GREP) -f $$($1_BIN)/_the.$$($1_JARNAME)_include
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -124,9 +124,9 @@ define SetupArchive
|
|||||||
ifeq ($$(word 20,$$($1_GREP_EXCLUDE_PATTERNS)),)
|
ifeq ($$(word 20,$$($1_GREP_EXCLUDE_PATTERNS)),)
|
||||||
$1_GREP_EXCLUDES:=| $(GREP) -v $$(patsubst %,$(SPACE)-e$(SPACE)$(DQUOTE)%$(DQUOTE),$$($1_GREP_EXCLUDE_PATTERNS))
|
$1_GREP_EXCLUDES:=| $(GREP) -v $$(patsubst %,$(SPACE)-e$(SPACE)$(DQUOTE)%$(DQUOTE),$$($1_GREP_EXCLUDE_PATTERNS))
|
||||||
else
|
else
|
||||||
$1_GREP_EXCLUDE_OUTPUT=$(RM) $$($1_BIN)/_the.$$($1_JARNAME)_exclude && \
|
$1_GREP_EXCLUDE_OUTPUT=$(RM) $$($1_BIN)/_the.$$($1_JARNAME)_exclude $$(NEWLINE) \
|
||||||
$$(strip $$(call ListPathsSafely,$1_GREP_EXCLUDE_PATTERNS,\n, \
|
$$(call ListPathsSafely,$1_GREP_EXCLUDE_PATTERNS,\n, \
|
||||||
>> $$($1_BIN)/_the.$$($1_JARNAME)_exclude))
|
>> $$($1_BIN)/_the.$$($1_JARNAME)_exclude)
|
||||||
$1_GREP_EXCLUDES:=| $(GREP) -v -f $$($1_BIN)/_the.$$($1_JARNAME)_exclude
|
$1_GREP_EXCLUDES:=| $(GREP) -v -f $$($1_BIN)/_the.$$($1_JARNAME)_exclude
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -56,7 +56,8 @@ define ListPathsSafely_If
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define ListPathsSafely_Printf
|
define ListPathsSafely_Printf
|
||||||
$(if $(strip $($1_LPS$4)),printf -- "$(strip $($1_LPS$4))\n" | $(decompress_paths) $3)
|
$(if $(strip $($1_LPS$4)),$(if $(findstring $(LOG_LEVEL),trace),,@)printf \
|
||||||
|
-- "$(strip $($1_LPS$4))\n" | $(decompress_paths) $3)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Receipt example:
|
# Receipt example:
|
||||||
@ -66,6 +67,7 @@ endef
|
|||||||
# if instead , , (a space) is supplied, then spaces remain spaces.
|
# if instead , , (a space) is supplied, then spaces remain spaces.
|
||||||
define ListPathsSafely
|
define ListPathsSafely
|
||||||
$(if $(word 16001,$($1)),$(error Cannot list safely more than 16000 paths. $1 has $(words $($1)) paths!))
|
$(if $(word 16001,$($1)),$(error Cannot list safely more than 16000 paths. $1 has $(words $($1)) paths!))
|
||||||
|
$(ECHO) $(LOG_DEBUG) Writing $(words $($1)) paths to '$3'
|
||||||
$(call ListPathsSafely_If,$1,$2,1,250)
|
$(call ListPathsSafely_If,$1,$2,1,250)
|
||||||
$(call ListPathsSafely_If,$1,$2,251,500)
|
$(call ListPathsSafely_If,$1,$2,251,500)
|
||||||
$(call ListPathsSafely_If,$1,$2,501,750)
|
$(call ListPathsSafely_If,$1,$2,501,750)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user