2017-02-25 09:14:35 -05:00
|
|
|
#!/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
|
|
|
}
|
2017-02-25 09:14:35 -05:00
|
|
|
close $out;
|
|
|
|
close $in;
|
2006-11-17 09:21:24 -05:00
|
|
|
system("mv -f crypt.ind.tmp crypt.ind");
|
|
|
|
|