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.71 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.70 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.69 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.68 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.67 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.66 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.65 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.64 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.63 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.62 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.59 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.58 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.57 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.55 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.54 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.53 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.52 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.51 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.50 lib/knj/scripts/svn_merge.rb
knjrbfw-0.0.49 lib/knj/scripts/svn_merge.rb