02 - cleaning up generated files.rb

来自「O Reilly Ruby Cookbook source code」· RB 代码 · 共 20 行

RB
20
字号
require 'rake/clean'# Include the "pkg" and "doc" directories and their contents.# Include all files ending in ".o" in the current directory#  and its subdirectories (recursively).CLOBBER.include('pkg', 'doc', '**/*.o')# Include InstalledFiles and .config: files created by setup.rb.# Include temporary files created during test run.CLEAN.include('InstalledFiles', '.config', 'test/**/*.tmp')#---desc 'Remove all object files.'task 'clobber_objects' do  rm_f FileList['**/*.o']end# Make clobber_objects a prerequisite of the preexisting clobber tasktask 'clobber' => 'clobber_objects'#---

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?