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:
Siddharth Agarwal 2009-08-03 21:46:05 +05:30
Родитель 3b128302ef
Коммит 3367dceb3e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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)