Skip to content

Instantly share code, notes, and snippets.

@hotchpotch
Created February 18, 2009 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotchpotch/66297 to your computer and use it in GitHub Desktop.
Save hotchpotch/66297 to your computer and use it in GitHub Desktop.
#!/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