coffeescript-widget/Rakefile
2011-07-20 17:39:29 -04:00

20 lines
446 B
Ruby

require 'rubygems'
require 'coffee_script/source'
require 'erubis'
desc 'build the widget'
task :build do
mkdir_p 'CoffeeScript.wdgt'
Dir['src/**/*'].each do |file|
cp file, 'CoffeeScript.wdgt'
end
cp CoffeeScript::Source.bundled_path, 'CoffeeScript.wdgt'
end
desc 'build a release widget'
task :release => :build do
mkdir_p 'pkg'
system %{tar jcvf pkg/CoffeeScript-#{File.read('VERSION').strip}.tar.bz2 CoffeeScript.wdgt}
end