autoproj 1.9.5 → 1.9.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/bin/autoproj_bootstrap +14 -3
- data/bin/autoproj_bootstrap.in +6 -0
- data/lib/autoproj/osdeps.rb +8 -3
- data/lib/autoproj/version.rb +1 -1
- metadata +2 -2
data/bin/autoproj_bootstrap
CHANGED
|
@@ -10,6 +10,12 @@ if defined? Encoding # This is a 1.9-only thing
|
|
|
10
10
|
Encoding.default_external = Encoding::UTF_8
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
if ENV['AUTOPROJ_CURRENT_ROOT'] && ENV['AUTOPROJ_CURRENT_ROOT'] != Dir.pwd
|
|
14
|
+
STDERR.puts "the env.sh from #{ENV['AUTOPROJ_CURRENT_ROOT']} seem to already be sourced"
|
|
15
|
+
STDERR.puts "start a new shell and try to bootstrap again"
|
|
16
|
+
exit 1
|
|
17
|
+
end
|
|
18
|
+
|
|
13
19
|
require 'rbconfig'
|
|
14
20
|
module Autobuild
|
|
15
21
|
@windows = RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw|[Ww]indows)!
|
|
@@ -1512,7 +1518,7 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
|
|
|
1512
1518
|
when 'gem' then modes << 'gem'
|
|
1513
1519
|
when 'pip' then modes << 'pip'
|
|
1514
1520
|
when 'os' then modes << 'os'
|
|
1515
|
-
when 'none' then
|
|
1521
|
+
when 'none' then
|
|
1516
1522
|
else raise ArgumentError, "#{str} is not a known package handler"
|
|
1517
1523
|
end
|
|
1518
1524
|
end
|
|
@@ -1589,7 +1595,10 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
|
|
|
1589
1595
|
options =
|
|
1590
1596
|
if Kernel.respond_to?(:validate_options)
|
|
1591
1597
|
Kernel.validate_options options, :osdeps_mode => osdeps_mode
|
|
1592
|
-
else
|
|
1598
|
+
else
|
|
1599
|
+
options = options.dup
|
|
1600
|
+
options[:osdeps_mode] ||= osdeps_mode
|
|
1601
|
+
options
|
|
1593
1602
|
end
|
|
1594
1603
|
|
|
1595
1604
|
os_package_handler.enabled = false
|
|
@@ -1599,8 +1608,10 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
|
|
|
1599
1608
|
options[:osdeps_mode].each do |m|
|
|
1600
1609
|
if m == 'os'
|
|
1601
1610
|
os_package_handler.enabled = true
|
|
1611
|
+
elsif pkg = package_handlers[m]
|
|
1612
|
+
pkg.enabled = true
|
|
1602
1613
|
else
|
|
1603
|
-
|
|
1614
|
+
Autoproj.warn "osdep handler #{m.inspect} has no handler, available handlers are #{package_handlers.keys.map(&:inspect).sort.join(", ")}"
|
|
1604
1615
|
end
|
|
1605
1616
|
end
|
|
1606
1617
|
os_package_handler.silent = self.silent?
|
data/bin/autoproj_bootstrap.in
CHANGED
|
@@ -10,6 +10,12 @@ if defined? Encoding # This is a 1.9-only thing
|
|
|
10
10
|
Encoding.default_external = Encoding::UTF_8
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
if ENV['AUTOPROJ_CURRENT_ROOT'] && ENV['AUTOPROJ_CURRENT_ROOT'] != Dir.pwd
|
|
14
|
+
STDERR.puts "the env.sh from #{ENV['AUTOPROJ_CURRENT_ROOT']} seem to already be sourced"
|
|
15
|
+
STDERR.puts "start a new shell and try to bootstrap again"
|
|
16
|
+
exit 1
|
|
17
|
+
end
|
|
18
|
+
|
|
13
19
|
require 'rbconfig'
|
|
14
20
|
module Autobuild
|
|
15
21
|
@windows = RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw|[Ww]indows)!
|
data/lib/autoproj/osdeps.rb
CHANGED
|
@@ -1394,7 +1394,7 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
|
|
|
1394
1394
|
when 'gem' then modes << 'gem'
|
|
1395
1395
|
when 'pip' then modes << 'pip'
|
|
1396
1396
|
when 'os' then modes << 'os'
|
|
1397
|
-
when 'none' then
|
|
1397
|
+
when 'none' then
|
|
1398
1398
|
else raise ArgumentError, "#{str} is not a known package handler"
|
|
1399
1399
|
end
|
|
1400
1400
|
end
|
|
@@ -1471,7 +1471,10 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
|
|
|
1471
1471
|
options =
|
|
1472
1472
|
if Kernel.respond_to?(:validate_options)
|
|
1473
1473
|
Kernel.validate_options options, :osdeps_mode => osdeps_mode
|
|
1474
|
-
else
|
|
1474
|
+
else
|
|
1475
|
+
options = options.dup
|
|
1476
|
+
options[:osdeps_mode] ||= osdeps_mode
|
|
1477
|
+
options
|
|
1475
1478
|
end
|
|
1476
1479
|
|
|
1477
1480
|
os_package_handler.enabled = false
|
|
@@ -1481,8 +1484,10 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
|
|
|
1481
1484
|
options[:osdeps_mode].each do |m|
|
|
1482
1485
|
if m == 'os'
|
|
1483
1486
|
os_package_handler.enabled = true
|
|
1487
|
+
elsif pkg = package_handlers[m]
|
|
1488
|
+
pkg.enabled = true
|
|
1484
1489
|
else
|
|
1485
|
-
|
|
1490
|
+
Autoproj.warn "osdep handler #{m.inspect} has no handler, available handlers are #{package_handlers.keys.map(&:inspect).sort.join(", ")}"
|
|
1486
1491
|
end
|
|
1487
1492
|
end
|
|
1488
1493
|
os_package_handler.silent = self.silent?
|
data/lib/autoproj/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: autoproj
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.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-
|
|
12
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: autobuild
|