Mercurial > dropbear
comparison libtommath/gen.pl @ 399:a707e6148060
merge of '5fdf69ca60d1683cdd9f4c2595134bed26394834'
and '6b61c50f4cf888bea302ac8fcf5dbb573b443251'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 03 Feb 2007 08:20:34 +0000 |
parents | eed26cff980b |
children | 60fc6476e044 |
comparison
equal
deleted
inserted
replaced
394:17d097fc111c | 399:a707e6148060 |
---|---|
1 #!/usr/bin/perl -w | |
2 # | |
3 # Generates a "single file" you can use to quickly | |
4 # add the whole source without any makefile troubles | |
5 # | |
6 use strict; | |
7 | |
8 open( OUT, ">mpi.c" ) or die "Couldn't open mpi.c for writing: $!"; | |
9 foreach my $filename (glob "bn*.c") { | |
10 open( SRC, "<$filename" ) or die "Couldn't open $filename for reading: $!"; | |
11 print OUT "/* Start: $filename */\n"; | |
12 print OUT while <SRC>; | |
13 print OUT "\n/* End: $filename */\n\n"; | |
14 close SRC or die "Error closing $filename after reading: $!"; | |
15 } | |
16 print OUT "\n/* EOF */\n"; | |
17 close OUT or die "Error closing mpi.c after writing: $!"; |