зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
34163ce513
Коммит
ca246a2f8f
|
@ -678,7 +678,20 @@ sub BuildResources()
|
||||||
#just copy this plugin to this directory.. temporary solution until the plug in is part of the build
|
#just copy this plugin to this directory.. temporary solution until the plug in is part of the build
|
||||||
my($dist_dir) = GetBinDirectory();
|
my($dist_dir) = GetBinDirectory();
|
||||||
my($essentials_dir) = "$dist_dir" . "Essential Files:";
|
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 = <<EOS;
|
||||||
|
tell application "Finder"
|
||||||
|
delete alias "$deadPlugin"
|
||||||
|
end tell
|
||||||
|
EOS
|
||||||
|
MacPerl::DoAppleScript($ascript) or die($^E);
|
||||||
|
}
|
||||||
|
|
||||||
|
FSpDirectoryCopy(":mozilla:gfx:src:mac:printerplugin:PrintDialogPDE.plugin:","$essentials_dir", 0);
|
||||||
|
|
||||||
ActivateApplication('McPL');
|
ActivateApplication('McPL');
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче