chiark / gitweb /
bdftopcf: special-case "no bdf data" return
[xfonts-traditional.git] / update-xfonts-traditional
index 619e2faca737ba00378e20d854de4a11d050a679..fc750daa34a55f61222ab82897e6c2efe30693fe 100755 (executable)
@@ -59,7 +59,9 @@ sub processbdf ($$$$) {
     my ($w,$h,$xo,$yo,$y,$bitmap,$glyph);
     my $modified=0;
     %props = ();
+    my $anyinput=0;
     while (<$inbdf>) {
+       $anyinput=1;
        if ($state eq 'bitmap' && $y==$h) {
            $glyph = uc $glyph;
            $glyph =~ s/\;$//;
@@ -124,6 +126,8 @@ sub processbdf ($$$$) {
     die $! if $inbdf->error;
     die $! if $outbdf->error or !$outbdf->flush;
     die unless $state eq 'idle';
+    return 'no bdf data' # also special cased in processpcfgz
+       if !$anyinput;
     if ($modified) {
        printf $logfile "%s: %d glyphs changed\n", $what, $modified
            or die $!;