autobuild 1.6.2.b6 → 1.6.2.b7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,8 @@ require 'set'
2
2
  module Autobuild
3
3
  @inherited_environment = Hash.new
4
4
  @environment = Hash.new
5
- @env_source_files = Set.new
5
+ @env_source_before = Set.new
6
+ @env_source_after = Set.new
6
7
 
7
8
  class << self
8
9
  # List of the environment that should be set before calling a subcommand
@@ -27,7 +28,11 @@ module Autobuild
27
28
 
28
29
  # List of files that should be sourced in the generated environment
29
30
  # variable setting shell scripts
30
- attr_reader :env_source_files
31
+ attr_reader :env_source_before
32
+
33
+ # List of files that should be sourced in the generated environment
34
+ # variable setting shell scripts
35
+ attr_reader :env_source_after
31
36
  end
32
37
 
33
38
  # Removes any settings related to the environment varialbe +name+, or for
@@ -92,7 +97,19 @@ module Autobuild
92
97
  # Require that generated environment variable scripts source the given shell
93
98
  # script
94
99
  def self.env_source_file(file)
95
- @env_source_files << file
100
+ env_source_after(file)
101
+ end
102
+
103
+ # Require that generated environment variable scripts source the given shell
104
+ # script
105
+ def self.env_source_before(file)
106
+ @env_source_before << file
107
+ end
108
+
109
+ # Require that generated environment variable scripts source the given shell
110
+ # script
111
+ def self.env_source_after(file)
112
+ @env_source_after << file
96
113
  end
97
114
 
98
115
  # Generates a shell script that sets the environment variable listed in
@@ -101,6 +118,10 @@ module Autobuild
101
118
  #
102
119
  # It also sources the files added by Autobuild.env_source_file
103
120
  def self.export_env_sh(io)
121
+ env_source_before.each do |path|
122
+ io.puts ". \"#{path}\""
123
+ end
124
+
104
125
  variables = []
105
126
  Autobuild.environment.each do |name, value|
106
127
  variables << name
@@ -117,7 +138,7 @@ module Autobuild
117
138
  variables.each do |var|
118
139
  io.puts "export #{var}"
119
140
  end
120
- env_source_files.each do |path|
141
+ env_source_after.each do |path|
121
142
  io.puts ". \"#{path}\""
122
143
  end
123
144
  end
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.6.2.b6" unless defined? Autobuild::VERSION
2
+ VERSION = "1.6.2.b7" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
metadata CHANGED
@@ -1,73 +1,97 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
- version: !ruby/object:Gem::Version
4
- version: 1.6.2.b6
3
+ version: !ruby/object:Gem::Version
4
+ hash: 1810697955
5
5
  prerelease: 6
6
+ segments:
7
+ - 1
8
+ - 6
9
+ - 2
10
+ - b
11
+ - 7
12
+ version: 1.6.2.b7
6
13
  platform: ruby
7
- authors:
14
+ authors:
8
15
  - Sylvain Joyeux
9
16
  autorequire:
10
17
  bindir: bin
11
18
  cert_chain: []
12
- date: 2012-09-26 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
19
+
20
+ date: 2012-10-04 00:00:00 Z
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
15
23
  name: rake
16
- requirement: &9404620 !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
17
26
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
33
+ - 7
34
+ - 0
21
35
  version: 0.7.0
22
36
  type: :runtime
23
- prerelease: false
24
- version_requirements: *9404620
25
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
26
39
  name: utilrb
27
- requirement: &9403560 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
28
42
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 29
47
+ segments:
48
+ - 1
49
+ - 3
50
+ - 3
32
51
  version: 1.3.3
33
52
  type: :runtime
34
- prerelease: false
35
- version_requirements: *9403560
36
- - !ruby/object:Gem::Dependency
53
+ version_requirements: *id002
54
+ - !ruby/object:Gem::Dependency
37
55
  name: rdoc
38
- requirement: &9402440 !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
39
58
  none: false
40
- requirements:
59
+ requirements:
41
60
  - - ~>
42
- - !ruby/object:Gem::Version
43
- version: '3.10'
61
+ - !ruby/object:Gem::Version
62
+ hash: 19
63
+ segments:
64
+ - 3
65
+ - 10
66
+ version: "3.10"
44
67
  type: :development
45
- prerelease: false
46
- version_requirements: *9402440
47
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
48
70
  name: hoe
49
- requirement: &9397540 !ruby/object:Gem::Requirement
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
50
73
  none: false
51
- requirements:
74
+ requirements:
52
75
  - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '3.1'
76
+ - !ruby/object:Gem::Version
77
+ hash: 5
78
+ segments:
79
+ - 3
80
+ - 1
81
+ version: "3.1"
55
82
  type: :development
56
- prerelease: false
57
- version_requirements: *9397540
58
- description: Collection of classes to handle build systems (CMake, autotools, ...)
59
- and import mechanisms (tarballs, CVS, SVN, git, ...). It also offers a Rake integration
60
- to import and build such software packages. It is the backbone of the autoproj (http://rock-robotics.org/autoproj)
61
- integrated software project management tool.
83
+ version_requirements: *id004
84
+ description: Collection of classes to handle build systems (CMake, autotools, ...) and import mechanisms (tarballs, CVS, SVN, git, ...). It also offers a Rake integration to import and build such software packages. It is the backbone of the autoproj (http://rock-robotics.org/autoproj) integrated software project management tool.
62
85
  email: rock-dev@dfki.de
63
- executables:
86
+ executables:
64
87
  - autobuild
65
88
  extensions: []
66
- extra_rdoc_files:
89
+
90
+ extra_rdoc_files:
67
91
  - Changes.txt
68
92
  - Manifest.txt
69
93
  - README.txt
70
- files:
94
+ files:
71
95
  - Changes.txt
72
96
  - Manifest.txt
73
97
  - README.txt
@@ -113,32 +137,42 @@ files:
113
137
  - .gemtest
114
138
  homepage: http://rock-robotics.org/stable/documentation/autoproj
115
139
  licenses: []
140
+
116
141
  post_install_message:
117
- rdoc_options:
142
+ rdoc_options:
118
143
  - --main
119
144
  - README.txt
120
- require_paths:
145
+ require_paths:
121
146
  - lib
122
- required_ruby_version: !ruby/object:Gem::Requirement
147
+ required_ruby_version: !ruby/object:Gem::Requirement
123
148
  none: false
124
- requirements:
125
- - - ! '>='
126
- - !ruby/object:Gem::Version
127
- version: '0'
128
- required_rubygems_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ hash: 3
153
+ segments:
154
+ - 0
155
+ version: "0"
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
157
  none: false
130
- requirements:
131
- - - ! '>'
132
- - !ruby/object:Gem::Version
158
+ requirements:
159
+ - - ">"
160
+ - !ruby/object:Gem::Version
161
+ hash: 25
162
+ segments:
163
+ - 1
164
+ - 3
165
+ - 1
133
166
  version: 1.3.1
134
167
  requirements: []
168
+
135
169
  rubyforge_project: autobuild
136
- rubygems_version: 1.8.11
170
+ rubygems_version: 1.8.24
137
171
  signing_key:
138
172
  specification_version: 3
139
173
  summary: Library to handle build systems and import mechanisms
140
- test_files:
141
- - test/test_import_cvs.rb
142
- - test/test_subcommand.rb
174
+ test_files:
143
175
  - test/test_import_svn.rb
144
176
  - test/test_import_tar.rb
177
+ - test/test_subcommand.rb
178
+ - test/test_import_cvs.rb