1 # get the list of files to process from renames.rsp
8 # process all the files
11 # get rid of the freakin' newline
15 print "processing " . $_;
17 # open the files for i/o
19 $new = $file . ".new";
21 open(OUT
, ">" . $new);
23 # process all the lines in the input file
27 # keep around the original line so we can check if it has been changed
30 # apply the transformations
33 # update the changed flag
40 # emit the [possibly] changed line
44 # done accessing the contents of the files
52 # check the file out and replace its contents
53 system("p4 edit " . $file);
65 # remove temporary work
69 print " [unchanged]\n";
75 print $changedCount . " changed files, " . $unchangedCount . " unchanged files, " . $substitutions . " substitutions\n";