Created
August 5, 2010 04:44
-
-
Save sugamasao/509243 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FP を switch-rabbit用の plugins にコピーするスクリプト | |
# Macでも対応するハズ(試してないけど) | |
# http://blog.kaihatsubu.com/archives/001706.html | |
# [FPはこちらから] | |
# http://kb2.adobe.com/cps/142/tn_14266.html | |
require 'fileutils' | |
# 【変えてね】 | |
FROM = './FlashPlayers/' | |
# 【変えてね】 | |
TO = './Switch Rabbit Plugins' | |
EXT = ENV['OS'] =~ /windows/i ? 'exe' : 'dmg' | |
target_list = [] | |
Dir::glob(File.expand_path(FROM) + "/**/*\.#{EXT}").each do |file| | |
target_list << file unless file =~ /.+\_(sa|standalone)[\_\.]/ | |
end | |
puts "*** copy files ***" | |
puts target_list | |
FileUtils.cp(target_list, File.expand_path(TO), {:verbose => false}) | |
puts "*** copy done. ***" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment