зеркало из https://github.com/mozilla/gecko-dev.git
Bug 506576 -- normalizepath normalizes MSYS paths without inserting a / in between when the first component of the path isn't an actual drive. r=ted
This commit is contained in:
Родитель
3b128302ef
Коммит
3367dceb3e
|
@ -1487,7 +1487,7 @@ else
|
|||
# on it, then merge with the rest of the path.
|
||||
root-path = $(shell echo $(1) | sed -e "s|\(/[^/]*\)/\?\(.*\)|\1|")
|
||||
non-root-path = $(shell echo $(1) | sed -e "s|\(/[^/]*\)/\?\(.*\)|\2|")
|
||||
normalizepath = $(foreach p,$(1),$(if $(filter /%,$(1)),$(shell cd $(call root-path,$(1)) && pwd -W)$(call non-root-path,$(1)),$(1)))
|
||||
normalizepath = $(foreach p,$(1),$(if $(filter /%,$(1)),$(patsubst %/,%,$(shell cd $(call root-path,$(1)) && pwd -W))/$(call non-root-path,$(1)),$(1)))
|
||||
endif
|
||||
else
|
||||
normalizepath = $(1)
|
||||
|
|
Загрузка…
Ссылка в новой задаче