tomcrypt/fixupind.pl

17 lines
292 B
Perl
Raw Normal View History

#!/usr/bin/perl
use strict;
use warnings;
open(my $in, '<', 'crypt.ind');
open(my $out, '>', 'crypt.ind.tmp');
my $a = <$in>;
print {$out} "$a\n\\addcontentsline{toc}{chapter}{Index}\n";
while (<$in>) {
print {$out} $_;
2006-11-17 09:21:24 -05:00
}
close $out;
close $in;
2006-11-17 09:21:24 -05:00
system("mv -f crypt.ind.tmp crypt.ind");