view libtomcrypt/fixupind.pl @ 652:17962b2a6b8f

- Make sure we don't use channel-specific data after it has been freed with a ChanType->closehandler()
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Dec 2011 05:27:29 +0800
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");