- tmppath.chdir {
- system "cp -a #{dir}/chise-db ." # copy all of the chise-db to the dir.
-
- ".".path.find {|f|
- if f =~ /([*?<>])/ # escape for Windows forbidden characters.
- nf = f.escape_win_filename
- 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
+ }
+ puts "."