#!/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 if RUBY_VERSION.split('.')[1].to_i == 8 path = File.expand_path(File.join(File.dirname(__FILE__), '1.8', "smokedeptool#{extension}")) else path = File.expand_path(File.join(File.dirname(__FILE__), '1.9', "smokedeptool#{extension}")) end exec(path, *ARGV)