7 print "USAGE: fix_log_debug_art211.pl <input-file>\n";
12 my $inputfile = $ARGV[0];
13 my $outputfile = $inputfile.".new";
15 print "check $inputfile for LOG_DEBUG\n";
16 open(PIN, "< $inputfile") or die "Couldn't open $inputfile";
17 open(POUT, "> $outputfile") or die "Couldn't open $outputfile";
19 while ( $line=<PIN> ) {
21 if (( $line =~ m/LOG_DEBUG/ ) && ( $line =~ m/<</ )) {
22 if ( $line =~ m/^\/\// ) {
25 print "updating $line\n";
26 print POUT "// workaround for #19851\n";
27 print POUT "//$line\n";
28 $line =~ s/LOG_DEBUG/mf::LogDebug/;