Skip to content

Instantly share code, notes, and snippets.

@DRMacIver
Created April 30, 2009 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DRMacIver/104517 to your computer and use it in GitHub Desktop.
Save DRMacIver/104517 to your computer and use it in GitHub Desktop.
directory "classes"
directory "tally"
file "bin/tally" => "tally" do
sh "cd tally && rake clobber tally && cd .."
sh "cp tally/tally bin"
end
task "compile" => "classes" do
sh "javac -d classes #{File.dirname(__FILE__)}/src/*.java"
end
task "dist" => ["bin/tally", "compile"]
task :default => :dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment