From ca246a2f8f8799a449d11f7de81368d7b59f0bb2 Mon Sep 17 00:00:00 2001 From: "jj%netscape.com" Date: Thu, 27 Jun 2002 02:39:12 +0000 Subject: [PATCH] bug 139815: Fix for depend builds: delete the plugin directory structure if it already exists under dist before copying it again. by sfraser, r=jj --- build/mac/build_scripts/MozillaBuildList.pm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/build/mac/build_scripts/MozillaBuildList.pm b/build/mac/build_scripts/MozillaBuildList.pm index 97a873bbd569..028664747349 100644 --- a/build/mac/build_scripts/MozillaBuildList.pm +++ b/build/mac/build_scripts/MozillaBuildList.pm @@ -678,7 +678,20 @@ sub BuildResources() #just copy this plugin to this directory.. temporary solution until the plug in is part of the build my($dist_dir) = GetBinDirectory(); my($essentials_dir) = "$dist_dir" . "Essential Files:"; - FSpDirectoryCopy(":mozilla:gfx:src:mac:printerplugin:PrintDialogPDE.plugin:","$essentials_dir",0); + my($existing_plugin) = $essentials_dir."PrintDialogPDE.plugin"; + + if (-e $existing_plugin) + { + my $deadPlugin = full_path_to($existing_plugin); + my $ascript = <