- Find.find("."){|f|
- if f =~ /([*?<>])/ # Windows\82É\82¨\82¯\82é\8bÖ\8e~\95¶\8e\9a\82ª\8aÜ\82Ü\82ê\82Ä\82¢\82½\82ç\81A\92u\8a·\82·\82é
- nf = CHISE.unix_to_win(f)
- cmd = "mv '#{f}' '#{nf}'"
- #print cmd, "\n"
- system cmd
- end
+ print "copy all chise-db to tmpdir"
+ system "cp -a #{dir} #{tmpdir}" #
+ puts "."
+
+ print "escape special characters"
+ Find.find(tmpdir+"/chise-db") {|f|
+ next if f.path.directory?
+ nf = f.path.escape.to_s
+ next if f == nf
+ cmd = "mv '#{f}' '#{nf}'"
+ #puts cmd
+ system cmd