From 4177ad07e67ec62ecf2216e7ff4b0b587834ecbb Mon Sep 17 00:00:00 2001 From: eto Date: Fri, 9 Jul 2004 16:39:43 +0000 Subject: [PATCH] update. --- chise/path.rb | 10 +--------- tools/Makefile | 3 +++ tools/make-chisedb-tarball.rb | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/chise/path.rb b/chise/path.rb index b6e5522..9e695f6 100755 --- a/chise/path.rb +++ b/chise/path.rb @@ -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) diff --git a/tools/Makefile b/tools/Makefile index e213a3e..3df2b57 100755 --- a/tools/Makefile +++ b/tools/Makefile @@ -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 . diff --git a/tools/make-chisedb-tarball.rb b/tools/make-chisedb-tarball.rb index 111ac8f..bb63575 100755 --- a/tools/make-chisedb-tarball.rb +++ b/tools/make-chisedb-tarball.rb @@ -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 -- 1.7.10.4