#!/usr/bin/env ruby require 'fileutils' cmd = "rdoc" cmd << " --op='doc/rdoc'" cmd << " --merge" cmd << " --exclude='task'" cmd << " --inline-source" cmd << " --template='jamis'" cmd << " lib [A-Z]*" if ARGV.include?('--dryrun') puts "rm_r doc/rdoc" puts cmd else FileUtils.rm_r "doc/rdoc" system cmd end