Files
mruby-mruby/tasks/ruby_ext.rake
T
Yuichiro MASUI 7c469c0b9d Rebuild CRuby based building script without Makefile
Tested CRuby 1.8.6 and 1.9.3

You can see building configuration in build_config.rb
2013-01-03 02:24:15 +09:00

25 lines
412 B
Ruby

def exefile(filename)
if ENV['OS'] == 'Windows_NT'
"#{filename}.exe"
else
filename
end
end
def filename(name)
if ENV['OS'] == 'Windows_NT'
'"'+name.gsub('/', '\\')+'"'
end
'"'+name+'"'
end
def filenames(names)
[names].flatten.map { |n| filename(n) }.join(' ')
end
class String
def relative_path_from(dir)
Pathname.new(self).relative_path_from(Pathname.new(dir)).to_s
end
end