autobuild 1.2.12 → 1.2.13

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.
@@ -3,6 +3,6 @@ require 'autobuild/reporting'
3
3
  require 'autobuild/package'
4
4
 
5
5
  module Autobuild
6
- VERSION = "1.2.12" unless defined? Autobuild::VERSION
6
+ VERSION = "1.2.13" unless defined? Autobuild::VERSION
7
7
  end
8
8
 
@@ -72,7 +72,7 @@ module Autobuild
72
72
  all_defines['CMAKE_INSTALL_PREFIX'] = prefix
73
73
 
74
74
  if !File.exists?( File.join(builddir, 'Makefile') )
75
- FileUtils.rm configurestamp
75
+ FileUtils.rm_f configurestamp
76
76
  end
77
77
 
78
78
  if File.exists?(configurestamp)
@@ -96,7 +96,7 @@ module Autobuild
96
96
  if Autobuild.debug
97
97
  puts "CMake configuration changed, forcing a reconfigure"
98
98
  end
99
- FileUtils.rm configurestamp
99
+ FileUtils.rm_f configurestamp
100
100
  end
101
101
  end
102
102
  end
@@ -18,9 +18,12 @@ module Autobuild
18
18
  @orogen_file ||= "#{File.basename(name)}.orogen"
19
19
 
20
20
  # Find out where orogen is, and make sure the configurestamp depend
21
- # on it
21
+ # on it. Ignore if orogen is too old to have a --base-dir option
22
22
  orogen_root = File.join(`orogen --base-dir`.chomp, 'orogen')
23
- file genstamp => Autobuild.source_tree(orogen_root)
23
+ if !orogen_root.empty?
24
+ file genstamp => Autobuild.source_tree(orogen_root)
25
+ end
26
+
24
27
  file configurestamp => genstamp
25
28
  file genstamp => File.join(srcdir, orogen_file) do
26
29
  regen
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.12
4
+ version: 1.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux