update.
authoreto <eto>
Fri, 9 Jul 2004 16:39:43 +0000 (16:39 +0000)
committereto <eto>
Fri, 9 Jul 2004 16:39:43 +0000 (16:39 +0000)
chise/path.rb
tools/Makefile
tools/make-chisedb-tarball.rb

index b6e5522..9e695f6 100755 (executable)
@@ -10,16 +10,8 @@ class String
 end
 
 class Pathname
-  def nuescape
-    s = @path.gsub(/([\/%]+)/n){
-      "%" + $1.unpack("H2" * $1.size).join("%").upcase
-    }
-    Pathname.new(s)
-  end
-
   def escape
-#    s = self.basename.to_s.gsub(/([\/%<>*?]+)/n){
-    s = self.basename.to_s.gsub(/([\/<>*?]+)/n){
+    s = self.basename.to_s.gsub(/([\/%]+)/n){
       "%" + $1.unpack("H2" * $1.size).join("%").upcase
     }
     Pathname.new(self.dirname+s)
index e213a3e..3df2b57 100755 (executable)
@@ -21,3 +21,6 @@ cleandump:
 
 cleanidsdb:
        -rm ../../chise-db/character/feature/ids*
+
+scp-chisedb:
+       scp aqua.eto.com:work/chise/ruby/tools/chise-db.tar.gz .
index 111ac8f..bb63575 100755 (executable)
@@ -31,7 +31,7 @@ def main(argv)
   print "escape special characters"
   Find.find(tmpdir+"/chise-db") {|f|
     next if f.path.directory?
-    nf = f.path.escape.to_s
+    nf = f.path.escape.unix_to_win.to_s
     next if f == nf
     cmd = "mv '#{f}' '#{nf}'"
     #puts cmd