mirror of
https://github.com/jimeh/modern_bubbling.git
synced 2026-02-19 11:56:38 +00:00
created Rakefile to easily build .AdiumMessageStyle packages
This commit is contained in:
16
Rakefile
Normal file
16
Rakefile
Normal 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
|
||||
Reference in New Issue
Block a user