#!/usr/bin/env ruby require 'rubygems' require 'Qt' windows = false processor, platform, *rest = RUBY_PLATFORM.split("-") windows = true if platform =~ /mswin32/ or platform =~ /mingw32/ extension = '' extension = '.exe' if windows path = File.expand_path(File.join(File.dirname(__FILE__), RUBY_VERSION.split('.')[0..1].join('.'), "rbrcc#{extension}")) exec(path, *ARGV)