Mercurial > projects > dwt2
comparison rakefile @ 109:8ae65ae167f5
Updated swt win32 for DMD 1.063 and latest Tango trunk.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 15 Sep 2010 16:42:28 +0200 |
parents | bbe49769ec18 |
children | 9f4c18c268b2 |
comparison
equal
deleted
inserted
replaced
108:b397a43d66d1 | 109:8ae65ae167f5 |
---|---|
8 # Helpers | 8 # Helpers |
9 # | 9 # |
10 class String | 10 class String |
11 def to_path | 11 def to_path |
12 if isWindows | 12 if isWindows |
13 self.gsub( '/', '\\' ); | 13 #self.gsub( '/', '\\' ); # don't know why this doesn't work |
14 self | |
14 else | 15 else |
15 self | 16 self |
16 end | 17 end |
17 end | 18 end |
18 end | 19 end |
19 | 20 |
20 def isWindows | 21 def isWindows |
21 Config::CONFIG['host_os'] =~ /mswin/ | 22 Config::CONFIG['host_os'] =~ /mswin/ || Config::CONFIG['host_os'] =~ /mingw/ |
22 end | 23 end |
23 | 24 |
24 ########################################################################## | 25 ########################################################################## |
25 # Constants | 26 # Constants |
26 # | 27 # |