andreasgal/B2G — Issue #137: make clean-gecko has some serious problems
Author: cgjones
Created: 2012-01-17 21:31:08+00:00
State: open

- If GECKO_PATH has trailing whitespace, e,g, "~/mozilla-central ", then

rm -rf $(GECKO_OBJDIR)

will blow away the *source directory*. Yow. As suggested by Thinker, this change fixes that particular issue

rm -rf $(strip $(GECKO_PATH))/objdir-prof-gonk

- if GECKO_PATH has any *internal* whitespace by accident, e.g., "~/mozilla stuff/gecko", then make clean-gecko will blow away the longest prefix without internal whitespace. It's unlikely that other commands would work when that's the case, but we should protect against it anyway.