1998-08-25 03:08:56 +04:00
|
|
|
|
2000-10-20 09:21:40 +04:00
|
|
|
use strict;
|
2003-03-11 03:31:29 +03:00
|
|
|
use Getopt::Std;
|
|
|
|
require mozBDate;
|
|
|
|
require "Moz/Milestone.pm";
|
|
|
|
|
|
|
|
my $mfile;
|
|
|
|
getopts('m:');
|
|
|
|
if (defined($::opt_m)) {
|
|
|
|
$mfile = $::opt_m;
|
|
|
|
}
|
1999-03-27 03:35:59 +03:00
|
|
|
|
2000-10-20 09:21:40 +04:00
|
|
|
my $outfile = $ARGV[0];
|
|
|
|
my $build_num_file = $ARGV[1];
|
|
|
|
my $infile = "";
|
1998-08-25 03:08:56 +04:00
|
|
|
|
2000-10-20 09:21:40 +04:00
|
|
|
$infile = $ARGV[2] if ("$ARGV[2]" ne "");
|
2003-03-11 03:31:29 +03:00
|
|
|
|
|
|
|
if (defined($mfile)) {
|
|
|
|
my $milestone = &Moz::Milestone::getOfficialMilestone($mfile);
|
|
|
|
&mozBDate::SetMilestone($milestone);
|
|
|
|
}
|
2000-10-20 09:21:40 +04:00
|
|
|
&mozBDate::SubstituteBuildNumber($outfile, $build_num_file, $infile);
|
1998-08-25 03:08:56 +04:00
|
|
|
|