lib/scripts/convert.pl
changeset 11001 6754fa0f2af7
parent 11000 498d0db8cd8a
child 11009 9e0ad9a5f9bb
equal deleted inserted replaced
11000:498d0db8cd8a 11001:6754fa0f2af7
   150     open TMPR,$tmpfile or die "Can't find tmp file $tmp: $!\n";
   150     open TMPR,$tmpfile or die "Can't find tmp file $tmp: $!\n";
   151     while(<TMPR>) {
   151     while(<TMPR>) {
   152       s/@@(\d+)@@/$thmnames[$1]/eg;
   152       s/@@(\d+)@@/$thmnames[$1]/eg;
   153       print TMPW $_;
   153       print TMPW $_;
   154     }
   154     }
   155     system("mv $currfile $currfile.~0~");
   155     system("mv $currfile $currfile~0~");
   156     system("rm $tmpfile");
   156     system("rm $tmpfile");
   157   }
   157   }
   158 }
   158 }
   159 
   159 
   160 sub done {
   160 sub done {