X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=xfonts-traditional.git;a=blobdiff_plain;f=update-xfonts-traditional;h=895be6d5671bcda3db31455eccac0c2da3373572;hp=63e9040d4a5572a8e14ba842526a48644c0a0621;hb=d4b1d0b116b859bd35b241d0983753935a98858c;hpb=1987c934200d2f253320fc7b2c1c05827c9bc9cd diff --git a/update-xfonts-traditional b/update-xfonts-traditional index 63e9040..895be6d 100755 --- a/update-xfonts-traditional +++ b/update-xfonts-traditional @@ -24,6 +24,7 @@ our $reportfh; our $foundryinfo; our %props; our $tolerate_bad_fonts=1; +our $always_reprocess; our $wanted_parallel; sub reportloaded { @@ -287,14 +288,17 @@ sub processfontdir ($) { return; } my $changed = 0; - my $olddone = do "$fontdir/$donefile"; - if (!$olddone) { - die "$fontdir $! $@ " unless $!==&ENOENT; - } elsif ($olddone->{''} ne $foundryinfo) { - our $repro_reported; - print $reportfh "reprocessing fonts (rules updated)\n" or die $! - unless $repro_reported++; - $olddone = undef; + my $olddone; + if (!$always_reprocess) { + $olddone = do "$fontdir/$donefile"; + if (!$olddone) { + die "$fontdir $! $@ " unless $!==&ENOENT; + } elsif ($olddone->{''} ne $foundryinfo) { + our $repro_reported; + print $reportfh "reprocessing fonts (rules updated)\n" or die $! + unless $repro_reported++; + $olddone = undef; + } } if (!$olddone) { $olddone = { }; @@ -453,6 +457,7 @@ our (@options)=( 'share-dir=s' => \$sharedir, 'verbose|v+' => \$verbose, 'j|parallel=i' => \$wanted_parallel, + 'always-reprocess!' => \$always_reprocess, 'tolerate-bad-fonts!' => \$tolerate_bad_fonts, );