Skip to content

Instantly share code, notes, and snippets.

@Mon-Ouie
Created March 16, 2010 20:47
Show Gist options
  • Save Mon-Ouie/334485 to your computer and use it in GitHub Desktop.
Save Mon-Ouie/334485 to your computer and use it in GitHub Desktop.
require 'fileutils'
file "ruby" do
FileUtils.ln_s '../ruby', 'ruby'
end
file "Joyau.prx" do
FileUtils.ln_s '../Joyau.prx', 'Joyau.prx'
end
task :tests => ["ruby", "Joyau.prx"] do
trap('INT') { IO.popen("pspsh -e reset").close }
IO.popen("pspsh", 'w+') do |pipe|
pipe.puts "./Joyau.prx"
line = ''
puts line while line = pipe.gets
end
end
task :default => [:tests]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment