mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
29 lines
No EOL
434 B
Perl
29 lines
No EOL
434 B
Perl
@files = glob("*.cpp *.h");
|
|
|
|
foreach $f (@files)
|
|
{
|
|
print("Processing $f\n");
|
|
|
|
open(IN, "<$f");
|
|
|
|
@file = <IN>;
|
|
|
|
close(IN);
|
|
|
|
open(IN, ">$f");
|
|
|
|
foreach $line (@file) {
|
|
if($line =~ /(\<Box2D[\w\d\_\/\.]+\>)/) {
|
|
$oi = $1;
|
|
if($oi =~ /([\w\d\_]+\.h)/)
|
|
{
|
|
$ni = "\"$1\"";
|
|
$line =~ s/$oi/$ni/g;
|
|
}
|
|
print "$line";
|
|
}
|
|
|
|
print IN $line;
|
|
}
|
|
close IN;
|
|
} |