view libtomcrypt/fixupind.pl @ 412:47bcc3536bd5

merge of '691c56da3db2685f58ea53540a73c1b79e7df9cd' and 'e0efd546c3cdb2828971e41af2afe43e850c641d'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Feb 2007 10:44:12 +0000
parents 0cbe8f6dbf9e
children
line wrap: on
line source

open(IN,"<crypt.ind");
open(OUT,">crypt.ind.tmp");
$a = <IN>;
print OUT  "$a\n\\addcontentsline{toc}{chapter}{Index}\n";
while (<IN>) {
   print OUT $_;
}
close OUT;
close IN;
system("mv -f crypt.ind.tmp crypt.ind");