From f26c439c22fd7b30cb26fbba05b3ec3e5187efa4 Mon Sep 17 00:00:00 2001 From: "seawood%netscape.com" Date: Sat, 22 Feb 2003 08:49:46 +0000 Subject: [PATCH] Make CFM build aware of buildconfig.html Fixing tinderbox bustage (hopefully) --- build/mac/build_scripts/MozillaBuildList.pm | 23 ++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/build/mac/build_scripts/MozillaBuildList.pm b/build/mac/build_scripts/MozillaBuildList.pm index cb665a0c3671..2923e34c7c7e 100644 --- a/build/mac/build_scripts/MozillaBuildList.pm +++ b/build/mac/build_scripts/MozillaBuildList.pm @@ -56,6 +56,27 @@ sub UpdateBuildNumberFiles() SetBuildNumber(":mozilla:config:build_number", \@gen_files); } +#//-------------------------------------------------------------------------------------------------- +#// UpdateGeneratedChromeFiles +#//-------------------------------------------------------------------------------------------------- +sub UpdateGeneratedChromeFiles() +{ + UpdateBuildNumberFiles(); + my ($file) = (":mozilla:xpfe:global:buildconfig.html"); + my $tmp; + open (IN, "${file}.in") || die("${file}.in: $!\n"); + open (OUT, ">$file") || die ("$file: $!\n"); + while ($tmp=) { + $tmp =~ s/@target@/Mac CFM/; + $tmp =~ s/@CC@/CodeWarrior/; + $tmp =~ s/@CXX@/CodeWarrior/; + $tmp =~ s/@\S+@//; + print OUT "$tmp"; + } + close(OUT); + close(IN); +} + #//-------------------------------------------------------------------------------------------------- #// Select a default skin #//-------------------------------------------------------------------------------------------------- @@ -1290,7 +1311,7 @@ sub BuildDist() mkpath([ ":mozilla:dist:viewer:Plug-ins", ":mozilla:dist:viewer_debug:Plug-ins"]); #mkpath([ ":mozilla:dist:client:Plugins", ":mozilla:dist:client_debug:Plugins"]); - UpdateBuildNumberFiles(); + UpdateGeneratedChromeFile(); BuildRuntimeDist();