lib/autoproj/autobuild.rb in autoproj-1.9.2 vs lib/autoproj/autobuild.rb in autoproj-1.9.3.rc1
- old
+ new
@@ -487,11 +487,11 @@
Autobuild.env_add_path 'RUBYLIB', libdir
end
if pkg.rake_setup_task && File.file?(File.join(pkg.srcdir, 'Rakefile'))
Autobuild::Subprocess.run pkg, 'post-install',
- 'rake', pkg.rake_setup_task, :working_directory => pkg.srcdir
+ Autoproj::CmdLine.ruby_executable, Autoproj.find_in_path('rake'), pkg.rake_setup_task, :working_directory => pkg.srcdir
end
end
end
yield(pkg) if block_given?
@@ -500,10 +500,10 @@
# task, or disabled the documentation generation altogether by setting
# rake_doc_task to nil
if !pkg.has_doc? && pkg.rake_doc_task
pkg.doc_task do
pkg.progress_start "generating documentation for %s", :done_message => 'generated documentation for %s' do
- Autobuild::Subprocess.run pkg, 'doc', 'rake', pkg.rake_doc_task, :working_directory => pkg.srcdir
+ Autobuild::Subprocess.run pkg, 'doc', Autoproj::CmdLine.ruby_executable, Autoproj.find_in_path('rake'), pkg.rake_doc_task, :working_directory => pkg.srcdir
end
end
end
end
end