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.28 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.27 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.26 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.25 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.24 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.23 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.22 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.21 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.20 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.19 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.18 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.17 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.16 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.15 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.14 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.13 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.12 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.11 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.10 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.9 lib/knj/scripts/svn_merge.rb