i
[chise/ruby.git] / tools / mkdbtarball.rb
index 8b51435..3bbabec 100755 (executable)
@@ -1,10 +1,9 @@
 #!/usr/bin/env ruby
-# by eto 2003-0109
+# Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
 
-require 'find'
-$LOAD_PATH << '../lib'
-require 'chise'
-include CHISE
+$LOAD_PATH.unshift("..")
+require "chise/char"
+require "find"
 
 def usage()
   print "Usage: mkdbtarball.rb <database dir for XEmacs UTF-2000 Character database> <tmp dir>\n"
@@ -22,7 +21,7 @@ orgdir = Dir.pwd
 Dir.chdir(tmpdir) #\93K\93\96\82Èdir\82É\88Ú\93®\82µ\82Ä\82©\82ç
 system "cp -a #{dir}/char-db ." #\82Ü\82¸\82»\82Ìdirectory\82É\96â\93\9a\96³\97p\82Å\91S\95\94\83R\83s\81[\82·\82é\81B
 
-Find.find('.'){|f|
+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 = DB.unix_to_win(f)
     cmd = "mv '#{f}' '#{nf}'"
@@ -34,5 +33,3 @@ Find.find('.'){|f|
 system "tar czf char-db.tar.gz char-db"
 system "mv char-db.tar.gz #{orgdir}"
 system "rm -rf #{tmpdir}/char-db"
-
-#----------------------------------------------------------------------end.