autobuild 1.7.5 → 1.7.6
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/README.txt +2 -2
- data/lib/autobuild/environment.rb +3 -2
- data/lib/autobuild/subcommand.rb +5 -1
- data/lib/autobuild/version.rb +1 -1
- metadata +2 -2
data/README.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
Copyright (c) 2006-
|
1
|
+
Copyright (c) 2006-2013 Sylvain Joyeux <sylvain.joyeux@m4x.org> and contributors
|
2
2
|
|
3
3
|
* http://rock-robotics.org
|
4
4
|
|
5
|
-
This work is licensed under the
|
5
|
+
This work is licensed under the BSD license. See License.txt for details
|
6
6
|
|
7
7
|
== What's autobuild ?
|
8
8
|
Autobuild imports, configures, builds and installs various kinds of software packages.
|
@@ -17,6 +17,7 @@ module Autobuild
|
|
17
17
|
@macos
|
18
18
|
end
|
19
19
|
|
20
|
+
SYSTEM_ENV = Hash.new
|
20
21
|
ORIGINAL_ENV = Hash.new
|
21
22
|
ENV.each do |k, v|
|
22
23
|
ORIGINAL_ENV[k] = v
|
@@ -206,10 +207,10 @@ module Autobuild
|
|
206
207
|
end
|
207
208
|
|
208
209
|
def self.env_update_var(name)
|
209
|
-
if !environment[name] && !inherited_environment[name]
|
210
|
+
if !environment[name] && !inherited_environment[name] && !SYSTEM_ENV[name]
|
210
211
|
ENV.delete(name)
|
211
212
|
else
|
212
|
-
ENV[name] = ((environment[name] || []) + (inherited_environment[name] || [])).join(ENV_LIST_SEPARATOR)
|
213
|
+
ENV[name] = ((environment[name] || []) + (inherited_environment[name] || []) + (SYSTEM_ENV[name] || [])).join(ENV_LIST_SEPARATOR)
|
213
214
|
end
|
214
215
|
end
|
215
216
|
|
data/lib/autobuild/subcommand.rb
CHANGED
@@ -258,7 +258,11 @@ module Autobuild::Subprocess
|
|
258
258
|
$stdin.reopen(pread)
|
259
259
|
end
|
260
260
|
|
261
|
-
|
261
|
+
if RUBY_VERSION < "1.9"
|
262
|
+
exec(*command)
|
263
|
+
else
|
264
|
+
exec(*command, :close_others => false)
|
265
|
+
end
|
262
266
|
rescue Errno::ENOENT
|
263
267
|
cwrite.write([CONTROL_COMMAND_NOT_FOUND].pack('I'))
|
264
268
|
exit(100)
|
data/lib/autobuild/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autobuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|