| 1 |
require "status.pl"; |
| 2 |
require "texlive.pl"; |
| 3 |
while (<>) { |
| 4 |
chop; |
| 5 |
s/,$//; |
| 6 |
if (/^\@TeXIndex/) |
| 7 |
{ |
| 8 |
($nam) = /^\@TeXIndex.(.*)/; |
| 9 |
print "\@TeXIndex\{$nam"; |
| 10 |
$Status=1; |
| 11 |
$Texlive=1; |
| 12 |
$Modified=0; |
| 13 |
} |
| 14 |
elsif (/^ *modified/) { s/, *$//; $mod=$_; } |
| 15 |
elsif (/^ *status/) { $Status=0; |
| 16 |
if ($L{$nam}) |
| 17 |
{ print ",\n status\t= \{$L{$nam}\}"; |
| 18 |
$Modified=1;} |
| 19 |
else { print ",\n$_"; } |
| 20 |
} |
| 21 |
elsif (/^ *texlive/) { $Texlive=0; |
| 22 |
if ($texlive{$nam} ne "") |
| 23 |
{ print ",\n texlive\t= \{$texlive{$nam}\}"; |
| 24 |
$Modified=1;} |
| 25 |
} |
| 26 |
elsif (/^}/) { |
| 27 |
if ($Status) { |
| 28 |
print ",\n status\t= \{unknown\}"; |
| 29 |
} |
| 30 |
if ($Texlive && $texlive{$nam} ne "") |
| 31 |
{ print ",\n texlive\t= \{$texlive{$nam}\},\n"; } |
| 32 |
if ($Modified) |
| 33 |
{ print ",\n modified\t= {1999/03/26 10:00:00 <s.rahtz\@elsevier.co.uk>}\n"; } |
| 34 |
elsif ($M{$nam} ne "") |
| 35 |
{ print ",\n modified\t= \{$M{$nam}\}\n"; } |
| 36 |
else |
| 37 |
{print ",\n$mod\n"; } |
| 38 |
print "}\n"; |
| 39 |
} |
| 40 |
|
| 41 |
elsif (/= {/) { print ",\n$_"; } |
| 42 |
else { print "\n$_"; } |
| 43 |
} |
| 44 |
|