1998-08-25 03:08:56 +04:00
|
|
|
open INFILE, "<$ARGV[1]";
|
|
|
|
$build = <INFILE>;
|
|
|
|
close INFILE;
|
|
|
|
chop $build;
|
1999-03-27 03:35:59 +03:00
|
|
|
open INFILE, "<$ARGV[0]" || die;
|
|
|
|
open OUTFILE, ">$ARGV[0].old" || die;
|
1998-08-25 03:08:56 +04:00
|
|
|
|
|
|
|
while (<INFILE>) {
|
1999-03-27 03:35:59 +03:00
|
|
|
|
|
|
|
$id = $_;
|
|
|
|
if ($id =~ "Build ID:") {
|
1999-04-07 21:00:27 +04:00
|
|
|
$temp = "Build ID: " . $build;
|
|
|
|
$id =~ s/Build ID:\s\d+/$temp/;
|
|
|
|
print OUTFILE $id;
|
1999-03-27 03:35:59 +03:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
print OUTFILE $_;
|
|
|
|
}
|
1998-08-25 03:08:56 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
close INFILE;
|
|
|
|
close OUTFILE;
|
|
|
|
|
|
|
|
rename "$ARGV[0].old", "$ARGV[0]";
|