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.48 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.47 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.46 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.45 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.44 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.43 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.42 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.41 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.40 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.39 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.38 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.37 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.36 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.35 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.34 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.33 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.32 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.31 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.30 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.29 lib/knj/scripts/svn_merge.rb