bake-toolkit 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/bakery +7 -5
- data/lib/bake/version.rb +1 -1
- data/lib/option/parser.rb +1 -1
- metadata +1 -1
data/bin/bakery
CHANGED
@@ -5,9 +5,10 @@ $timeStart = Time.now
|
|
5
5
|
$:.unshift(File.dirname(__FILE__)+"/../lib")
|
6
6
|
require 'bake/version'
|
7
7
|
|
8
|
-
$:.unshift(File.dirname(__FILE__)+"/../../
|
8
|
+
$:.unshift(File.dirname(__FILE__)+"/../../cxxproject.git/lib")
|
9
9
|
|
10
10
|
require "cxxproject/version"
|
11
|
+
require 'cxxproject/utils/utils'
|
11
12
|
|
12
13
|
puts "-- bakery #{Cxxproject::Version.bake}, ruby #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}, platform #{RUBY_PLATFORM} --"
|
13
14
|
|
@@ -95,15 +96,15 @@ module Cxxproject
|
|
95
96
|
@toBuild.each do |bp|
|
96
97
|
currentRun += 1
|
97
98
|
p = File.dirname(bp.proj)
|
98
|
-
cmd = (["-m
|
99
|
-
cmdWithNum = "* bakery #{currentRun} of #{maxRuns}: bake " + cmd + " *"
|
99
|
+
cmd = (["-m", p, "-b", bp.conf] + passedParams)
|
100
|
+
cmdWithNum = "* bakery #{currentRun} of #{maxRuns}: bake " + cmd.join(" ") + " *"
|
100
101
|
print "\n"; cmdWithNum.length.times { print "*" }; print "\n";
|
101
102
|
Printer.printInfo cmdWithNum
|
102
103
|
cmdWithNum.length.times { print "*" }; print "\n";
|
103
104
|
|
104
105
|
runOk = true
|
105
106
|
begin
|
106
|
-
bakeOptions = Options.new(cmd
|
107
|
+
bakeOptions = Options.new(cmd)
|
107
108
|
bakeOptions.parse_options
|
108
109
|
tocxx = ToCxx.new(bakeOptions)
|
109
110
|
if tocxx.doit()
|
@@ -111,7 +112,8 @@ module Cxxproject
|
|
111
112
|
else
|
112
113
|
runOk = false
|
113
114
|
end
|
114
|
-
rescue
|
115
|
+
rescue Exception => e
|
116
|
+
puts e.message
|
115
117
|
runOk = false
|
116
118
|
end
|
117
119
|
|
data/lib/bake/version.rb
CHANGED
data/lib/option/parser.rb
CHANGED