Patch for toolsets with spaces in them

Cory Dodt <corydodt-wgPraSjSqjuEakHPNWoOSQC/[email protected]> Fri, 08 Oct 2004 10:08:39 -0700
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Ran into this problem on Windows.  Coworker had installed cygwin into
C:\Program Files\cygwin.  When we tried to run aap, we got:

'C:\Program' is not recognized as an internal or external executable,
operable program or batch file.

This occurs when mingw.py tries to detect the gcc --version.

The patch to fix this:

--- RecPython.py        2004-06-19 19:54:36.000000000 -0700
+++ RecPython.py.patched        2004-10-08 10:03:59.915575800 -0700
@@ -429,7 +429,7 @@
                      x_ok = 1
                  if not x_ok:
                      continue
-                return fullname
+                return '"%s"' % (fullname,)

      return None


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl