Created
February 18, 2009 11:23
-
-
Save hotchpotch/66297 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env ruby | |
require 'pathname' | |
require 'fileutils' | |
coderepos_dir = Pathname.new(ENV['HOME']).join('svn/coderepos/lang/javascript/vimperator-plugins/trunk/') | |
vimp_dir = Pathname.new("/mnt/c/Documents\ and\ Settings/gorou/vimperator/plugin/") | |
cc = coderepos_dir.children | |
vimp_dir.children.each do |plugin| | |
if plugin.extname == '.js' | |
name = plugin.basename.to_s | |
if cc.grep name | |
from = coderepos_dir.join name | |
to = vimp_dir.join name | |
if from.size != to.size | |
puts "copy: #{name}" | |
FileUtils.cp from.to_s, to.to_s | |
end | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment