[Rake-devel] rdoctask bug

Pierre Baillet oct at zoy.org
Tue Jun 8 17:58:49 EDT 2004


Hi again,

the rdoctask runs a "sh %{rdoc...." (line 104). This does not work on
windows platform as the rdoc binary name is "rdoc.bat". I suggest the
following change :

	if RUBY_PLATFORM =~ /win32$/
		sh %{rdoc.bat -o #{@rdoc_dir} #{opts} #{@rdoc_files}}
    else  
		sh %{rdoc -o #{@rdoc_dir} #{opts} #{@rdoc_files}}
	end

This changes fixes the buggy behaviour on win32 platforms.

Let me know what you think of that fix.
Cheers,
-- 
Pierre.


More information about the Rake-devel mailing list