mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/rdoc] Add "rake clean" task to erase generated parser files
https://github.com/ruby/rdoc/commit/4e3e635afa
This commit is contained in:
parent
b277a6d26d
commit
d082510429
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,12 @@ task "#{path}.gem" => package_parser_files
|
|||
desc "Generate all files used racc and kpeg"
|
||||
task :generate => parsed_files
|
||||
|
||||
task :clean do
|
||||
parsed_files.each do |path|
|
||||
File.delete(path) if File.exist?(path)
|
||||
end
|
||||
end
|
||||
|
||||
begin
|
||||
require 'rubocop/rake_task'
|
||||
rescue LoadError
|
||||
|
|
Loading…
Add table
Reference in a new issue