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