task :default => :run_all

desc ''
task :run_all do
  {
    'hs'  => 'runghc',
    'scm' => 'gosh',
    'rb'  => 'ruby',
    'pl'  => 'perl'
  }.each do |ext, command|
    FileList["*.#{ext}"].each do |f|
      sh "/usr/bin/env #{command} #{f}"
      puts
    end
  end
end
