created Rakefile to easily build .AdiumMessageStyle packages

This commit is contained in:
2009-11-21 17:02:34 +02:00
parent a769de1e1b
commit af50986e68

16
Rakefile Normal file
View File

@@ -0,0 +1,16 @@
require "rubygems"
require "fileutils"
$BUILD_DIR = "_build"
task :build do
FileUtils.mkdir($BUILD_DIR) if !File.exist?($BUILD_DIR)
Dir.glob("*/").map { |dir| dir.chop }.each do |dir|
if dir != $BUILD_DIR
target = "#{$BUILD_DIR}/#{dir}.AdiumMessageStyle"
FileUtils.remove_dir(target) if File.exist?(target)
FileUtils.cp_r(dir, target)
end
end
end