formula = Coresys::Formula.find(ARGV[0]).new
Coresys::Installer.new(formula).install do

  # Create two identical directories and place the user in the second directory
  # to make changes which the diff will be based on
  quiet_system 'mkdir a && mv * .* a/'
  quiet_system 'mkdir b && cp -Rap a/* a/.* b/'
  Dir.chdir 'b' do

    info Dir.pwd

    system(ENV['SHELL'], '-l')
    unless $?.success?
      raise Corsys::Installer::AbortInstall, 'Interactive diff creation canceled'
    end
  end

  quite_system "diff -rupN a b > ~/#{formula.name}.diff"
  info "A diff has been generated in your home directory named #{formula.name}.diff"
end


Add command to speed creation of diffs for patch
Add command to speed creation of diffs for patch
