Sha256: 4024e694da299285d826691d3e65e1d2cd40e2b98d6030511be0b32d7ee11022

Contents?: true

Size: 513 Bytes

Versions: 100

Compression:

Stored size: 513 Bytes

Contents

#!/usr/bin/ruby

require "knj/autoload"

path_to = ARGV[0]

Dir.glob(File.join("**", ".svn")).each do |dir|
  newdir = path_to + "/" + dir
  
  #print dir + "\n"
  #print newdir + "\n"
  
  if File.exists?(newdir)
    print "Remove: " + newdir.to_s + "\n"
    FileUtils.rm_r(newdir)
  end
  
  begin
    #print "Move: " + dir + "\n"
    #FileUtils.mv(dir, newdir)
    
    print "Copy: " + dir + "\n"
    FileUtils.cp_r(dir, newdir)
  rescue => e
    print "Failed: " + e.message + "\n"
  end
  
  #print "\n"
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
knjrbfw-0.0.115 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.114 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.113 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.111 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.110 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.109 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.108 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.107 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.105 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.104 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.103 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.102 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.101 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.100 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.99 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.98 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.97 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.96 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.95 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.94 lib/knj/scripts/svn_merge.rb