From 916de29ee4f31ac43978180bb5faa6749599bf8f Mon Sep 17 00:00:00 2001 From: "cyeh%netscape.com" Date: Mon, 21 Sep 1998 17:48:17 +0000 Subject: [PATCH] adding a 10 second delay in the hopes that this will cause the automation to work.+ git-svn-id: svn://10.0.0.236/trunk@10587 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/build/mac/BuildMozillaOfficialDebug.pl | 4 ++++ mozilla/build/mac/Moz.pm | 18 +++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/mozilla/build/mac/BuildMozillaOfficialDebug.pl b/mozilla/build/mac/BuildMozillaOfficialDebug.pl index 3e9da3a293c..96092b38923 100644 --- a/mozilla/build/mac/BuildMozillaOfficialDebug.pl +++ b/mozilla/build/mac/BuildMozillaOfficialDebug.pl @@ -44,5 +44,9 @@ SetBuildNumber(); SetTimeBomb(0, 30); +# Delay() + +Delay(10); + # Now build the projects BuildMozilla(); diff --git a/mozilla/build/mac/Moz.pm b/mozilla/build/mac/Moz.pm index 9599b78d251..f39d14d3228 100644 --- a/mozilla/build/mac/Moz.pm +++ b/mozilla/build/mac/Moz.pm @@ -32,7 +32,7 @@ package Moz; require Exporter; @ISA = qw(Exporter); -@EXPORT = qw(BuildProject BuildProjectClean OpenErrorLog MakeAlias StopForErrors DontStopForErrors InstallFromManifest SetBuildNumber SetAgentString SetTimeBomb); +@EXPORT = qw(BuildProject BuildProjectClean OpenErrorLog MakeAlias StopForErrors DontStopForErrors InstallFromManifest SetBuildNumber SetAgentString SetTimeBomb Delay); @EXPORT_OK = qw(CloseErrorLog UseCodeWarriorLib QUIET); use Cwd; @@ -416,6 +416,22 @@ sub SetTimeBomb($$) } +sub Delay($) + +{ + my ($delay_seconds) = @_; + + $now = time; + + $exit_time = $now + $delay_seconds; + + while ($exit_time > $now) { + $now = time; + } + +} + + 1; =head1 AUTHORS