8199428: install-file macro fails on filenames with space on Solaris
Reviewed-by: tbell, ihse
This commit is contained in:
parent
11fc5a4d73
commit
10b29b4ca8
@ -518,12 +518,14 @@ ifeq ($(OPENJDK_TARGET_OS),solaris)
|
||||
define install-file
|
||||
$(call MakeTargetDir)
|
||||
$(RM) '$(call DecodeSpace, $@)'
|
||||
if [ '$(call DecodeSpace, $(dir $@))' != \
|
||||
if [ '$(call DecodeSpace, $(dir $(call EncodeSpace, $@)))' != \
|
||||
'$(call DecodeSpace, $(dir $(call EncodeSpace, $<)))' ]; then \
|
||||
$(CP) -f -r -P '$(call DecodeSpace, $<)' '$(call DecodeSpace, $(@D))'; \
|
||||
if [ '$(call DecodeSpace, $(@F))' != \
|
||||
$(CP) -f -r -P '$(call DecodeSpace, $<)' \
|
||||
'$(call DecodeSpace, $(dir $(call EncodeSpace, $@)))'; \
|
||||
if [ '$(call DecodeSpace, $(notdir $(call EncodeSpace, $@)))' != \
|
||||
'$(call DecodeSpace, $(notdir $(call EncodeSpace, $(<))))' ]; then \
|
||||
$(MV) '$(call DecodeSpace, $(@D)/$(<F))' '$(call DecodeSpace, $@)'; \
|
||||
$(MV) '$(call DecodeSpace, $(dir $(call EncodeSpace, $@))/$(notdir $(call EncodeSpace, $<)))' \
|
||||
'$(call DecodeSpace, $@)'; \
|
||||
fi; \
|
||||
else \
|
||||
if [ -L '$(call DecodeSpace, $<)' ]; then \
|
||||
|
Loading…
x
Reference in New Issue
Block a user