correct new CHISE DB structure.
authorimiyazaki <imiyazaki>
Tue, 28 Oct 2003 13:42:05 +0000 (13:42 +0000)
committerimiyazaki <imiyazaki>
Tue, 28 Oct 2003 13:42:05 +0000 (13:42 +0000)
Chise_utils/Chise_utils.pm

index 2e13949..53b0713 100644 (file)
@@ -47,12 +47,10 @@ our $VERSION = '0.01';
 
 my $DB_HOME="";
 unless($DB_HOME){
-    if(-e '/usr/local/lib/chise/db'){
-       $DB_HOME='/usr/local/lib/chise/db';
-    }elsif(-e '/usr/lib/chise/db'){
-       $DB_HOME='/usr/lib/chise/db';
-    }elsif(-e '/sw/lib/chise/db'){
-       $DB_HOME='/sw/lib/chise/db';
+    if(-e '/usr/local/lib/chise/chise-db'){
+       $DB_HOME='/usr/local/lib/chise/chise-db';
+    }elsif(-e '/usr/lib/chise/chise-db'){
+       $DB_HOME='/usr/lib/chise/chise-db';
     }elsif(-e '/usr/local/lib/chise/char-db'){
        $DB_HOME='/usr/local/lib/chise/char-db';
     }elsif(-e 'd:/work/chise/char-db'){
@@ -109,10 +107,10 @@ if(-d "$DB_HOME/character"){
        $atr=~s!$DB_HOME/character/feature/!!;
        $db{$atr}=$_;
     }
-    for (glob "$DB_HOME/character/by-feature/*"){
+    for (glob "$DB_HOME/character/by_feature/*"){
        next if(/\.txt$/);
        $atr=$_;
-       $atr=~s!$DB_HOME/character/feature/!!;
+       $atr=~s!$DB_HOME/character/by_feature/!!;
        $reverse_db{$atr}=$_;
     }
 }elsif(-d "$DB_HOME/system-char-id"){