X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/ce551a5d55b12c8b377e9331fbfe4d67790934e4..00ffc9287b5766ce0c5ff89e1096200a1bc355be:/tools/mkfontinfo diff --git a/tools/mkfontinfo b/tools/mkfontinfo index b27b779..e7cd4f5 100755 --- a/tools/mkfontinfo +++ b/tools/mkfontinfo @@ -15,7 +15,11 @@ my %cover; my $incsuffix = '.inc.pl'; for my $fontfile (glob 'data/font/*'.$incsuffix) { my ($fontid) = basename($fontfile, $incsuffix); - my ($fontmeta, @fontrange) = do $fontfile or next; + my ($fontmeta, @fontrange) = do "./$fontfile"; + if (!$fontmeta) { + warn "$fontfile: $!"; + next; + } $fontmeta->{file} = $fontid; my $year = substr $fontmeta->{date}, 0, 4; $fontmeta->{description} = join(' ', @@ -31,7 +35,7 @@ my %charlist; $charlist{table}->{abc} = ['A'..'Z', 'a'..'z']; -my $chartables = do 'unicode-table.inc.pl' or warn $@ || $!; +my $chartables = do './unicode-table.inc.pl' or warn $@ || $!; if ($chartables) { while (my ($tablegroup, $grouprow) = each %{$chartables}) { while (my ($tablename, $chars) = each %{$grouprow}) { @@ -65,7 +69,7 @@ eval { } or warn "Could not include count for html entities: $@"; eval { - my $agemap = do 'data/unicode-age.inc.pl' + my $agemap = do './data/unicode-age.inc.pl' or warn "Could not include unicode version data: $!"; use Unicode::UCD 'charinfo';