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
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"
|
desc "Generate all files used racc and kpeg"
|
||||||
task :generate => parsed_files
|
task :generate => parsed_files
|
||||||
|
|
||||||
|
task :clean do
|
||||||
|
parsed_files.each do |path|
|
||||||
|
File.delete(path) if File.exist?(path)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'rubocop/rake_task'
|
require 'rubocop/rake_task'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue