udpate the build number in about-all.html everytime you build.

This commit is contained in:
cyeh%netscape.com 1998-08-27 20:15:30 +00:00
parent bfad15d218
commit e27942f4fd
2 changed files with 22 additions and 2 deletions

View File

@ -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;

View File

@ -36,5 +36,7 @@ chdir("::::");
# Make and popuplate the dist directory
DistMozilla();
SetBuildNumber();
# Now build the projects
BuildMozilla();