Welcome to mirror list, hosted at ThFree Co, Russian Federation.

add-conditional.pl « Mono.C5 « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ac758cc9b6bb7331ffd73fe9b15f28d7c0d058dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl -w
use strict;

foreach my $file (@ARGV) {
    open FILE,"+<",$file;
    my $contents = "";
    while (defined ($_ = <FILE>)) {
	$contents .= $_;
    }
    truncate FILE, 0;
    seek FILE, 0, 0;
    print FILE "#if NET_2_0\n";
    print FILE $contents . "\n";
    print FILE "#endif\n";
    close FILE;
}