Mercurial > projects > dwt2
comparison rakefile @ 45:d5dd1c5b90a9
Made src file paths relative, so the __FILE__ literal do only contain the relevant path.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 18:52:36 +0100 |
parents | ed96ea2a2764 |
children | 65761bc28ab2 |
comparison
equal
deleted
inserted
replaced
44:ed96ea2a2764 | 45:d5dd1c5b90a9 |
---|---|
116 end | 116 end |
117 rsp.puts "-c" | 117 rsp.puts "-c" |
118 rsp.puts "-op" | 118 rsp.puts "-op" |
119 Find.find( srcdir_abs ) do |path| | 119 Find.find( srcdir_abs ) do |path| |
120 if path =~ /\.d$/ then | 120 if path =~ /\.d$/ then |
121 rsp.puts path.to_path | 121 rsp.puts path.to_path[ srcdir_abs.size+1 .. -1 ] |
122 end | 122 end |
123 end | 123 end |
124 rsp.close | 124 rsp.close |
125 | 125 |
126 Dir.chdir(srcdir_abs) do | 126 Dir.chdir(srcdir_abs) do |
211 rsp.puts "-op" | 211 rsp.puts "-op" |
212 rsp.puts "-od#{OBJDIR.to_path}" | 212 rsp.puts "-od#{OBJDIR.to_path}" |
213 applfile = File.join(BINDIR,appname+EXEEXT) | 213 applfile = File.join(BINDIR,appname+EXEEXT) |
214 rsp.puts "-of#{applfile.to_path}" | 214 rsp.puts "-of#{applfile.to_path}" |
215 filelist.each do |path| | 215 filelist.each do |path| |
216 rsp.puts File.expand_path(path).to_path | 216 rsp.puts File.expand_path(path).to_path[ srcdir_abs.size+1 .. -1 ] |
217 end | 217 end |
218 rsp.close | 218 rsp.close |
219 | 219 |
220 Dir.chdir(srcdir_abs) do | 220 Dir.chdir(srcdir_abs) do |
221 if isWindows | 221 if isWindows |