patch to common.make for cygwin paths
Stephen Brandon <stephen <at> brandonitconsulting.co.uk>
2001-11-05 21:41:21 GMT
Hi,
There was a bug left in make/common.make when using Windows
paths (c:/GNUstep/...) because common.make tried to check
that it could find $(GNUSTEP_SYSTEM_ROOT) in $PATH. The last
set of Windows patches change this behaviour slightly:
GNUSTEP_SYSTEM_ROOT is allowed to have c:/... style paths,
but the paths get mangled when they are added to PATH so
that the colons don't break the path field separators.
Therefore the check in common.make needs to reflect this.
I've put the patch through a couple of tests on Windows: the
"cygpath" shell command is ONLY called when the path matches
^[a-zA-Z]:
Cheers,
Stephen Brandon
stephen <at> brandonitconsulting.co.uk
Index: make/common.make
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/make/common.make,v
retrieving revision 1.82
diff -r1.82 common.make
65c65,72
< ifeq ($(findstring $(GNUSTEP_SYSTEM_ROOT)/Tools,$(PATH)),)
---
> IS_WIN_PATH = $(shell echo "$(GNUSTEP_SYSTEM_ROOT)" | sed 's/^\([a-zA-Z]:.*\)//')
(Continue reading)