# HG changeset patch # User erikj # Date 1520873348 -3600 # Node ID d1a19a08389a2b435f6eafba106237e48ad1fd5f # Parent 564802b01ded9d70d619d065c0febf6b36efd105 8199428: install-file macro fails on filenames with space on Solaris Reviewed-by: tbell, ihse diff -r 564802b01ded -r d1a19a08389a make/common/MakeBase.gmk --- a/make/common/MakeBase.gmk Mon Mar 12 17:00:54 2018 +0100 +++ b/make/common/MakeBase.gmk Mon Mar 12 17:49:08 2018 +0100 @@ -518,12 +518,14 @@ 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)/$(