mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
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:
parent
3b128302ef
commit
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user