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.72.0 bin/bake
bake-toolkit-2.71.0 bin/bake
bake-toolkit-2.70.1 bin/bake
bake-toolkit-2.70.0 bin/bake
bake-toolkit-2.69.0 bin/bake
bake-toolkit-2.68.1 bin/bake
bake-toolkit-2.68.0 bin/bake
bake-toolkit-2.67.0 bin/bake
bake-toolkit-2.66.0 bin/bake
bake-toolkit-2.65.2 bin/bake
bake-toolkit-2.65.1 bin/bake
bake-toolkit-2.65.0 bin/bake
bake-toolkit-2.64.4 bin/bake
bake-toolkit-2.64.3 bin/bake
bake-toolkit-2.64.2 bin/bake
bake-toolkit-2.64.1 bin/bake
bake-toolkit-2.64.0 bin/bake
bake-toolkit-2.63.2 bin/bake
bake-toolkit-2.63.1 bin/bake
bake-toolkit-2.63.0 bin/bake