autoproj 1.5.8 → 1.6.0.rc1
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/History.txt +5 -0
- data/Rakefile +38 -35
- data/bin/autoproj +1 -1
- data/doc/guide/src/autoproj_bootstrap +337 -92
- data/doc/guide/src/package_sets/index.page +3 -1
- data/lib/autoproj/autobuild.rb +67 -19
- data/lib/autoproj/cmdline.rb +93 -9
- data/lib/autoproj/manifest.rb +3 -2
- data/lib/autoproj/options.rb +17 -7
- data/lib/autoproj/osdeps.rb +250 -82
- data/lib/autoproj/system.rb +24 -2
- data/lib/autoproj/version.rb +1 -1
- metadata +11 -8
data/lib/autoproj/system.rb
CHANGED
@@ -24,12 +24,29 @@ module Autoproj
|
|
24
24
|
File.join(root_dir, "autoproj")
|
25
25
|
end
|
26
26
|
|
27
|
+
class << self
|
28
|
+
# The directory in which packages will be installed.
|
29
|
+
#
|
30
|
+
# If it is a relative path, it is relative to the root dir of the
|
31
|
+
# installation.
|
32
|
+
#
|
33
|
+
# The default is "install"
|
34
|
+
attr_reader :prefix
|
35
|
+
|
36
|
+
# Change the value of 'prefix'
|
37
|
+
def prefix=(new_path)
|
38
|
+
@prefix = new_path
|
39
|
+
Autoproj.change_option('prefix', new_path, true)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
@prefix = "install"
|
43
|
+
|
27
44
|
# Returns the build directory (prefix) for this autoproj installation.
|
28
45
|
#
|
29
46
|
# If the current directory is not in an autoproj installation, raises
|
30
47
|
# UserError.
|
31
48
|
def self.build_dir
|
32
|
-
|
49
|
+
File.expand_path(Autoproj.prefix, root_dir)
|
33
50
|
end
|
34
51
|
|
35
52
|
# Returns the path to the provided configuration file.
|
@@ -97,8 +114,10 @@ module Autoproj
|
|
97
114
|
end
|
98
115
|
|
99
116
|
File.open(filename, "w") do |io|
|
117
|
+
variables = []
|
100
118
|
Autobuild.environment.each do |name, value|
|
101
|
-
|
119
|
+
variables << name
|
120
|
+
shell_line = "#{name}=#{value.join(":")}"
|
102
121
|
if Autoproj.env_inherit?(name)
|
103
122
|
if value.empty?
|
104
123
|
next
|
@@ -108,6 +127,9 @@ module Autoproj
|
|
108
127
|
end
|
109
128
|
io.puts shell_line
|
110
129
|
end
|
130
|
+
variables.each do |var|
|
131
|
+
io.puts "export #{var}"
|
132
|
+
end
|
111
133
|
end
|
112
134
|
end
|
113
135
|
|
data/lib/autoproj/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
4
|
+
prerelease: true
|
5
5
|
segments:
|
6
6
|
- 1
|
7
|
-
-
|
8
|
-
-
|
9
|
-
|
7
|
+
- 6
|
8
|
+
- 0
|
9
|
+
- rc1
|
10
|
+
version: 1.6.0.rc1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Sylvain Joyeux
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-23 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -251,11 +252,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
251
252
|
version: "0"
|
252
253
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
253
254
|
requirements:
|
254
|
-
- - "
|
255
|
+
- - ">"
|
255
256
|
- !ruby/object:Gem::Version
|
256
257
|
segments:
|
257
|
-
-
|
258
|
-
|
258
|
+
- 1
|
259
|
+
- 3
|
260
|
+
- 1
|
261
|
+
version: 1.3.1
|
259
262
|
requirements: []
|
260
263
|
|
261
264
|
rubyforge_project: autobuild
|