Commit 05a4c461 authored by Eric Davis's avatar Eric Davis

[#262] Add a rake task to convert line endings to UNIX

parent bc249871
namespace :code do
desc "Fix line endings of all source files"
task :fix_line_endings do
unless `which fromdos`.present?
raise "fromdos command not found"
end
Dir['**/**{.rb,.html.erb,.rhtml,.rjs,.rsb,.plain.erb,.rxml,.yml,.rake,.eml}'].each do |file_name|
next if file_name.include?("vendor")
system("fromdos #{file_name}")
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment