SBSPSS/tools/Perl/pl/dep.pl

19 lines
308 B
Perl
Raw Normal View History

2000-08-29 18:26:01 +02:00
# main
#{
($InFile,$OutFile,$ObjFile)=@ARGV;
$OutFile=">$OutFile";
open(InFile) || die "Can't open in file $InFile; $!";
open(OutFile) || die "Can't open in file $OutFile; $!";
while (<InFile>)
{
s/^.*\.obj.*:\w*.*\.cpp/$ObjFile:/g;
print (OutFile $_);
}
close(OutFile);
close(InFile);
#}