From f007aa271e604c39facd1a64b16ee4c17eed2a0e Mon Sep 17 00:00:00 2001 From: imiyazaki Date: Mon, 20 Oct 2003 16:22:54 +0000 Subject: [PATCH] use /usr/local/lib/chise/omega as a directory of scripts and DB's. use 'env'. --- makefonts.pl | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/makefonts.pl b/makefonts.pl index 7ef95b5..b6b1d17 100755 --- a/makefonts.pl +++ b/makefonts.pl @@ -7,14 +7,21 @@ use utf8; use IO::Socket::INET; use BerkeleyDB; +my $omegadb_path="/usr/local/lib/chise/omega"; # set to the path of your db and script. + my $kageaddr="kage2.fonts.jp:80"; # Specify port number! -my $t1asm = "/usr/local/bin/t1asm"; # point to 't1asm' executable. -die "Cannot execute $t1asm. Abort.\n" unless -x $t1asm; -my $pfaedit="/usr/local/bin/pfaedit"; # point to 'pfaedit' executable. -die "Cannot execute $pfaedit. Abort.\n" unless -x $pfaedit; -my $cleanup_script="svg2t1.pfe"; # Set the name of pfaedit script. +my $kagecgi="/~kamichi/test/kagecgi.cgi"; # + +my $t1asm = "/usr/bin/env t1asm"; # point to 't1asm' executable. +#die "Cannot execute $t1asm. Abort.\n" unless -x $t1asm; +my $pfaedit="/usr/bin/env pfaedit"; # point to 'pfaedit' executable. +#die "Cannot execute $pfaedit. Abort.\n" unless -x $pfaedit; + +$omegadb_path=~s!/$!!; + +my $cleanup_script="$omegadb_path/svg2t1.pfe"; # Check the path of pfaedit script. +my $dbpath="$omegadb_path/glyph.db"; # check your DB path. -my $dbpath="$HOME/.chise/glyph.db"; # Set to your DB path. # Open Glyph Database my $db = new BerkeleyDB::Hash -Filename => $dbpath, -Flags => DB_CREATE @@ -195,7 +202,7 @@ BLACKBOX ############## # Read ids data generated by outCMAP -my $idsdata="idsdata.pl"; +my $idsdata="$omegadb_path/idsdata.pl"; my ($font_start, $ids_start, %ids); if(-e $idsdata){ # "require" doesn't work well. -- 1.7.10.4