Sha256: d0f7c89b3e76588a45622b881f7a7269a9a8f0ac4cd45e6b782e843043dc0d11

Contents?: true

Size: 1.02 KB

Versions: 25

Compression:

Stored size: 1.02 KB

Contents

#!/usr/bin/env ruby

$timeStart = Time.now

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

STDOUT.sync = true
STDERR.sync = true

puts "-- bake #{Bake::Version.number}, ruby #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}, platform #{RUBY_PLATFORM} --"

require 'tocxx'
require 'common/options/option'
require 'socket'

module Bake

  earlyExit = nil
  begin
    if RUBY_VERSION[0..2] == "1.8"
      Bake.formatter.printError("Error: Ruby 1.8 not supported anymore. Use Ruby 1.9 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
  Bake.formatter.printInfo("\nTime: %02d:%02d minutes" % [timeDiff/60, timeDiff%60])
  
  raise earlyExit if earlyExit
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
bake-toolkit-2.12.2 bin/bake
bake-toolkit-2.12.1 bin/bake
bake-toolkit-2.12.0 bin/bake
bake-toolkit-2.11.4 bin/bake
bake-toolkit-2.11.3 bin/bake
bake-toolkit-2.11.2 bin/bake
bake-toolkit-2.11.1 bin/bake
bake-toolkit-2.11.0 bin/bake
bake-toolkit-2.10.3 bin/bake
bake-toolkit-2.10.2 bin/bake
bake-toolkit-2.10.1 bin/bake
bake-toolkit-2.10.0 bin/bake
bake-toolkit-2.9.2 bin/bake
bake-toolkit-2.9.1 bin/bake
bake-toolkit-2.9.0 bin/bake
bake-toolkit-2.8.0 bin/bake
bake-toolkit-2.7.0 bin/bake
bake-toolkit-2.5.0 bin/bake
bake-toolkit-2.4.4 bin/bake
bake-toolkit-2.4.3 bin/bake