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