autoproj 1.2.0 → 1.2.1

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 CHANGED
@@ -1,3 +1,19 @@
1
+ = Version 1.2.1
2
+ * accept two layouts for version control description:
3
+
4
+ - package_name:
5
+ type: git
6
+ url: blablabla
7
+
8
+ and
9
+
10
+ - package_name:
11
+ type: git
12
+ url: blablabla
13
+
14
+ Even though the second one is not the proper YAML data structure,
15
+ it is actually quite intuitively written by humans, so accept it.
16
+
1
17
  = Version 1.2.0
2
18
  * added the rebuild and force-build modes
3
19
  * added a local source that allows to override imported package sets and so on.
data/Rakefile CHANGED
@@ -88,7 +88,7 @@ if do_doc
88
88
  task 'guide' => 'dist:bootstrap'
89
89
  RDoc::Task.new("api") do |rdoc|
90
90
  rdoc.rdoc_dir = 'doc/html/api'
91
- rdoc.title = "oroGen"
91
+ rdoc.title = "autoproj"
92
92
  rdoc.options << '--show-hash'
93
93
  rdoc.rdoc_files.include('lib/**/*.rb')
94
94
  end
@@ -43,6 +43,18 @@ layout:
43
43
  - orocos/
44
44
  {coderay}
45
45
 
46
+ Configuration files like <tt>autoproj/manifest</tt> are YAML file. As such, they
47
+ aresensible to indentation. The snippet above should be read as: in the layout, there is first a "lib" part and second the packages whose names start with "orocos/" _(first level of indentation)_. In the "lib" part, the packages are "typelib", "utilmm"
48
+ and "utilrb" _(second level of indentation)_.
49
+ {.warning}
50
+
51
+ Alternatively, the example above could be written:
52
+ {coderay:: yaml}
53
+ layout:
54
+ - lib: [typelib, utilmm, utilrb]
55
+ - orocos/
56
+ {coderay}
57
+
46
58
  Finally, names of sublayouts can be used as arguments in the autoproj command
47
59
  line, instead of package names:
48
60
 
@@ -111,7 +123,7 @@ You can list local packages that are not in an imported package set by placing
111
123
  the definitions in autoproj/, in a file ending with <tt>.autobuild</tt>. See [this
112
124
  page](source_yml.html) for information on how to write autobuild files.
113
125
 
114
- Setting up the path to specific commands (make, parallel_builds)
126
+ Setting up the path to specific commands (make, parallel builds)
115
127
  ----------------------------------------------------------------
116
128
 
117
129
  The autobuild API allows to specify what specific installed command to use for
@@ -132,6 +144,21 @@ Autobuild API directly in the <tt>autoproj/init.rb</tt> and
132
144
  files. The former is loaded before all source files and the latter is loaded
133
145
  after all source files.
134
146
 
147
+ Some examples:
148
+
149
+ * fixing dependencies: if a dependency is not listed in a package's manifest,
150
+ then you can fix it by adding the following in <tt>autoproj/overrides.rb</tt>
151
+ {coderay:: ruby}
152
+ a = Autobuild::Package['a_package']
153
+ a.depends_on "other_package"
154
+ {coderay}
155
+
156
+ * changing the configuration of some cmake package:
157
+ {coderay:: ruby}
158
+ a = Autobuild::Package['a_package']
159
+ a.define "CONFIG_VAR", "CONFIG_VALUE"
160
+ {coderay}
161
+
135
162
  Building packages selectively on the command line
136
163
  -------------------------------------------------
137
164
 
@@ -307,7 +307,20 @@ module Autoproj
307
307
 
308
308
  if all_vcs
309
309
  all_vcs.each do |spec|
310
- name, spec = spec.to_a.first
310
+ if spec.values.size != 1
311
+ # Maybe the user wrote the spec like
312
+ # - package_name:
313
+ # type: git
314
+ # url: blah
315
+ #
316
+ # In that case, we should have the package name as
317
+ # "name => nil". Check that.
318
+ name, _ = spec.find { |n, v| v.nil? }
319
+ spec.delete(name)
320
+ else
321
+ name, spec = spec.to_a.first
322
+ end
323
+
311
324
  if Regexp.new(name) =~ package_name
312
325
  vcs_spec = vcs_spec.merge(spec)
313
326
  end
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-25 01:00:00 +02:00
12
+ date: 2009-10-26 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency