mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
udpate the build number in about-all.html everytime you build.
This commit is contained in:
parent
bfad15d218
commit
e27942f4fd
@ -4,7 +4,7 @@ package BuildList;
|
||||
require Exporter;
|
||||
|
||||
@ISA = qw(Exporter);
|
||||
@EXPORT = qw(BuildMozilla DistMozilla);
|
||||
@EXPORT = qw(BuildMozilla DistMozilla SetBuildNumber);
|
||||
|
||||
=head1 NAME
|
||||
|
||||
@ -48,7 +48,7 @@ sub BuildMozilla()
|
||||
$D = "";
|
||||
$dist_dir = ":mozilla:dist:client:";
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Build the appropriate target of each project
|
||||
#
|
||||
@ -341,5 +341,23 @@ sub DistMozilla()
|
||||
InstallFromManifest(":mozilla:base:src:MANIFEST", ":mozilla:dist:base:");
|
||||
}
|
||||
|
||||
sub SetBuildNumber
|
||||
{
|
||||
|
||||
open (OUTPUT, ">:mozilla:config:build_number") || die "could not open buildnumber";
|
||||
|
||||
open (BDATE, "perl :mozilla:config:bdate.pl|");
|
||||
|
||||
while (<BDATE>) {
|
||||
print OUTPUT $_;
|
||||
}
|
||||
|
||||
close (BDATE);
|
||||
close (OUTPUT);
|
||||
|
||||
system ("perl :mozilla:config:aboutime.pl :mozilla:l10n:us:xp:about-all.html :mozilla:config:build_number");
|
||||
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
@ -36,5 +36,7 @@ chdir("::::");
|
||||
# Make and popuplate the dist directory
|
||||
DistMozilla();
|
||||
|
||||
SetBuildNumber();
|
||||
|
||||
# Now build the projects
|
||||
BuildMozilla();
|
||||
|
Loading…
Reference in New Issue
Block a user