All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
fix_log_debug_art211.pl File Reference

Go to the source code of this file.

Functions

 if ($#ARGV< 0)
 
 open (PIN,"< $inputfile") or die"Couldn't open $inputfile"
 
 open (POUT,"> $outputfile") or die"Couldn't open $outputfile"
 
 while ($line=< PIN >)
 
 close (PIN)
 
 close (POUT)
 
 exit (0)
 

Variables

use strict
 
use warnings
 
my $inputfile = $ARGV[0]
 
my $outputfile = $inputfile.".new"
 
print check $inputfile for
LOG_DEBUG 
n
 
my $line
 
 else
 

Function Documentation

close ( PIN  )
close ( POUT  )
exit ( )
if ( )

Definition at line 5 of file fix_log_debug_art211.pl.

5  {
6  print "\n";
7  print "USAGE: fix_log_debug_art211.pl <input-file>\n";
8  print "\n";
9  exit 1;
10 }
do one_file $F done echo for F in find $TOP name CMakeLists txt print
open ( PIN  )
open ( POUT  ,
,
  $outputfile" 
)
while (   $line = <PIN>)

Definition at line 19 of file fix_log_debug_art211.pl.

19  {
20  chop $line;
21  if (( $line =~ m/LOG_DEBUG/ ) && ( $line =~ m/<</ )) {
22  if ( $line =~ m/^\/\// ) {
23  print POUT "$line\n";
24  } else {
25  print "updating $line\n";
26  print POUT "// workaround for #19851\n";
27  print POUT "//$line\n";
28  $line =~ s/LOG_DEBUG/mf::LogDebug/;
29  print POUT "$line\n";
30  }
31  } else {
do one_file $F done echo for F in find $TOP name CMakeLists txt print
tuple m
now if test mode generate materials, CRT shell, world, gdml header else just generate CRT shell for u...
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60

Variable Documentation

my $inputfile = $ARGV[0]

Definition at line 12 of file fix_log_debug_art211.pl.

my $line

Definition at line 18 of file fix_log_debug_art211.pl.

my $outputfile = $inputfile.".new"

Definition at line 13 of file fix_log_debug_art211.pl.

else
Initial value:
{
print POUT "$line\n"
do one_file $F done echo for F in find $TOP name CMakeLists txt print

Definition at line 31 of file fix_log_debug_art211.pl.

print check $inputfile for LOG_DEBUG n

Definition at line 15 of file fix_log_debug_art211.pl.

use strict

Definition at line 2 of file fix_log_debug_art211.pl.

use warnings

Definition at line 3 of file fix_log_debug_art211.pl.