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.
@@ -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
- File.join(root_dir, "build")
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
- shell_line = "export #{name}=#{value.join(":")}"
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
 
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.5.8"
2
+ VERSION = "1.6.0.rc1"
3
3
  end
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: false
4
+ prerelease: true
5
5
  segments:
6
6
  - 1
7
- - 5
8
- - 8
9
- version: 1.5.8
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-15 00:00:00 +02:00
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
- - 0
258
- version: "0"
258
+ - 1
259
+ - 3
260
+ - 1
261
+ version: 1.3.1
259
262
  requirements: []
260
263
 
261
264
  rubyforge_project: autobuild