Sha256: 04263d38004e77f6215c4c67b5e07ad7eb8fb483cbcac4d3d563fcf7353d0fe6

Contents?: true

Size: 1.07 KB

Versions: 30

Compression:

Stored size: 1.07 KB

Contents

#!/usr/bin/env ruby

if RUBY_VERSION[0..1] == "1."
   puts ("Error: Ruby 1.x not supported anymore. Use Ruby 2.0 or greater.")
   exit 1
 end

$timeStart = Time.now

$:.unshift(File.dirname(__FILE__)+"/../lib")
require_relative '../lib/common/version'

STDOUT.sync = true
STDERR.sync = true

require 'tocxx'
require 'socket'

puts "Profiling #{Time.now - $timeStart}: ruby includes parsed..." if ARGV.include?("--profiling")

module Bake

  earlyExit = nil
  begin
    puts "Profiling #{Time.now - $timeStart}: parse options..." if ARGV.include?("--profiling")
    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

30 entries across 30 versions & 1 rubygems

Version Path
bake-toolkit-2.62.0 bin/bake
bake-toolkit-2.61.0 bin/bake
bake-toolkit-2.60.2 bin/bake
bake-toolkit-2.60.0 bin/bake
bake-toolkit-2.59.0 bin/bake
bake-toolkit-2.58.0 bin/bake
bake-toolkit-2.57.0 bin/bake
bake-toolkit-2.56.0 bin/bake
bake-toolkit-2.55.1 bin/bake
bake-toolkit-2.55.0 bin/bake