freeride-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FR-devel] "patch" for freeride + mingw problem


From: Laurent Julliard
Subject: Re: [FR-devel] "patch" for freeride + mingw problem
Date: Wed, 16 Jul 2003 23:08:14 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030529

Gour wrote:
Hi!

Here is the small "patch" which fixes the problem wiht absolute/relative paths
in FreeRIDE when it's run in Mingw & MSYS environment:

*** ./freebase.rb       Tue Jul  1 09:35:53 2003
--- /home/ggd/win/msys/1.0/home/ggd/freeride/freebase/lib/freebase/freebase.rb  
Wed Jul 1
6 11:47:07 2003
***************
*** 45,51 ****
  #
  class File
    def File.absolute_path?(path)
!     if RUBY_PLATFORM =~ /mswin32/
        path =~ %r{^([a-zA-Z]:)*[/\\]+}
      else
        path[0..0] == File::SEPARATOR
--- 45,51 ----
  #
  class File
    def File.absolute_path?(path)
!     if RUBY_PLATFORM =~ /(mswin32|mingw32)/
        path =~ %r{^([a-zA-Z]:)*[/\\]+}
      else
        path[0..0] == File::SEPARATOR



Thanks! This one (as well as other similar regex matches) are being committed to the CVS repo as I write this message.

Laurent





reply via email to

[Prev in Thread] Current Thread [Next in Thread]