six-arma-tools 0.1.6 → 0.2.0
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/Rakefile +1 -1
- data/lib/six/arma/tools.rb +1 -1
- data/lib/six/arma/tools/pbodll.rb +8 -3
- metadata +3 -3
data/Rakefile
CHANGED
data/lib/six/arma/tools.rb
CHANGED
@@ -166,15 +166,20 @@ module Six
|
|
166
166
|
params = "-BINARIZE -CLEAR -DEBUG"
|
167
167
|
params += " -TEMP \"#{settings[:temp]}\"" if settings[:temp]
|
168
168
|
params += " -INCLUDE \"#{settings[:include]}\"" if settings[:include]
|
169
|
-
|
169
|
+
|
170
|
+
@source[/(.:[\/][\w0-9@]*)[\/]./]
|
171
|
+
proj = settings[:project] ? settings[:project] : $1
|
172
|
+
|
173
|
+
unless proj.nil?
|
170
174
|
if (Dir[File.join(@source, "**/*.p3d")] + Dir[File.join(@source, "**/*.wrp")]).size > 0 # TODO: Configurable?
|
171
|
-
params += " -PROJECT \"#{
|
175
|
+
params += " -PROJECT \"#{proj}\""
|
172
176
|
end
|
173
177
|
end
|
178
|
+
|
174
179
|
prefix = check_prefix(@source, '__AUTO__')
|
175
180
|
params += " -PREFIX #{prefix}" unless prefix.empty?
|
176
181
|
log.info "BinPBO: #{@source}"
|
177
|
-
exec = "#{tool('binpbo.exe')} \"#{@source}\" \"#{@destination}\" #{params}".gsub('/', '\\')
|
182
|
+
exec = "\"#{tool('binpbo.exe')}\" \"#{@source}\" \"#{@destination}\" #{params}".gsub('/', '\\')
|
178
183
|
log.info exec
|
179
184
|
output = %x[#{exec}]
|
180
185
|
log.debug output
|