Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (16 sloc) 0.586 kb
fd181cc added libtommath-0.17
Tom St Denis authored
1 #!/usr/bin/perl -w
b66471f added libtommath-0.13
Tom St Denis authored
2 #
fd181cc added libtommath-0.17
Tom St Denis authored
3 # Generates a "single file" you can use to quickly
4 # add the whole source without any makefile troubles
b66471f added libtommath-0.13
Tom St Denis authored
5 #
fd181cc added libtommath-0.17
Tom St Denis authored
6 use strict;
b66471f added libtommath-0.13
Tom St Denis authored
7
fd181cc added libtommath-0.17
Tom St Denis authored
8 open( OUT, ">mpi.c" ) or die "Couldn't open mpi.c for writing: $!";
0ef44ce added libtommath-0.18
Tom St Denis authored
9 foreach my $filename (glob "bn*.c") {
fd181cc added libtommath-0.17
Tom St Denis authored
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: $!";
b66471f added libtommath-0.13
Tom St Denis authored
15 }
0ef44ce added libtommath-0.18
Tom St Denis authored
16 print OUT "\n/* EOF */\n";
fd181cc added libtommath-0.17
Tom St Denis authored
17 close OUT or die "Error closing mpi.c after writing: $!";
Something went wrong with that request. Please try again.