Sha256: 85a283f7f039efa5102432a3a7031091c2d9f36ecd52e8860465ba6d8917e04e
Contents?: true
Size: 946 Bytes
Versions: 8
Compression:
Stored size: 946 Bytes
Contents
#!/usr/bin/env ruby $timeStart = Time.now $:.unshift(File.dirname(__FILE__)+"/../lib") require_relative '../lib/common/version' STDOUT.sync = true STDERR.sync = true require 'tocxx' require 'socket' module Bake earlyExit = nil begin if RUBY_VERSION[0..1] == "1." Bake.formatter.printError("Error: Ruby 1.x not supported anymore. Use Ruby 2.0 or greater.") ExitHelper.exit(1) end Bake.options = Options.new(ARGV) Bake.options.parse_options tocxx = Bake::ToCxx.new tocxx.connect() tocxx.doit() tocxx.disconnect() rescue SystemExit => e earlyExit = e begin tocxx.disconnect() rescue Exception => e2 end end timeEnd = Time.now timeDiff = timeEnd - $timeStart if Bake.options.printTime Bake.formatter.printInfo("\nTime: %02d:%02d minutes" % [timeDiff/60, timeDiff%60]) end raise earlyExit if earlyExit end
Version data entries
8 entries across 8 versions & 1 rubygems