diff options
author | Ben Murdoch <benm@google.com> | 2011-05-13 16:23:25 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-05-16 11:35:02 +0100 |
commit | 65f03d4f644ce73618e5f4f50dd694b26f55ae12 (patch) | |
tree | f478babb801e720de7bfaee23443ffe029f58731 /Tools/Scripts/update-webkit-auxiliary-libs | |
parent | 47de4a2fb7262c7ebdb9cd133ad2c54c187454d0 (diff) | |
download | external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.zip external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.gz external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.bz2 |
Merge WebKit at r75993: Initial merge by git.
Change-Id: I602bbdc3974787a3b0450456a30a7868286921c3
Diffstat (limited to 'Tools/Scripts/update-webkit-auxiliary-libs')
-rwxr-xr-x | Tools/Scripts/update-webkit-auxiliary-libs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Tools/Scripts/update-webkit-auxiliary-libs b/Tools/Scripts/update-webkit-auxiliary-libs index 19e4ad3..9a6b20f 100755 --- a/Tools/Scripts/update-webkit-auxiliary-libs +++ b/Tools/Scripts/update-webkit-auxiliary-libs @@ -54,11 +54,12 @@ my $file = "WebKitAuxiliaryLibrary"; my $zipFile = "$file.zip"; my $auxiliaryLibsURL = "http://developer.apple.com/opensource/internet/$zipFile"; my $webkitLibrariesDir = toUnixPath($ENV{'WEBKITLIBRARIESDIR'}) || "$sourceDir/WebKitLibraries/win"; -my $tmpDir = File::Spec->rel2abs(File::Temp::tempdir("webkitlibsXXXXXXX", TMPDIR => 1, CLEANUP => 1)); +my $tmpRelativeDir = File::Temp::tempdir("webkitlibsXXXXXXX", TMPDIR => 1, CLEANUP => 1); +my $tmpAbsDir = File::Spec->rel2abs($tmpRelativeDir); print "Checking Last-Modified date of $zipFile...\n"; -my $result = system "curl -s -I $auxiliaryLibsURL | grep Last-Modified > \"$tmpDir/$file.headers\""; +my $result = system "curl -s -I $auxiliaryLibsURL | grep Last-Modified > \"$tmpAbsDir/$file.headers\""; if (WEXITSTATUS($result)) { print STDERR "Couldn't check Last-Modified date of new $zipFile.\n"; @@ -73,7 +74,7 @@ if (WEXITSTATUS($result)) { exit 0; } -if (open NEW, "$tmpDir/$file.headers") { +if (open NEW, "$tmpAbsDir/$file.headers") { my $new = lastModifiedToUnixTime(<NEW>); close NEW; @@ -88,17 +89,17 @@ if (open NEW, "$tmpDir/$file.headers") { } print "Downloading $zipFile...\n\n"; -$result = system "curl -o \"$tmpDir/$zipFile\" $auxiliaryLibsURL"; +$result = system "curl -o \"$tmpAbsDir/$zipFile\" $auxiliaryLibsURL"; die "Couldn't download $zipFile!" if $result; -$result = system "unzip", "-q", "-d", $tmpDir, "$tmpDir/$zipFile"; +$result = system "unzip", "-q", "-d", $tmpAbsDir, "$tmpAbsDir/$zipFile"; die "Couldn't unzip $zipFile." if $result; print "\nInstalling $file...\n"; sub wanted { - my $relativeName = File::Spec->abs2rel($File::Find::name, "$tmpDir/$file/win"); + my $relativeName = File::Spec->abs2rel($File::Find::name, "$tmpAbsDir/$file/win"); my $destination = "$webkitLibrariesDir/$relativeName"; if (-d $_) { @@ -109,9 +110,9 @@ sub wanted system "cp", $_, $destination; } -File::Find::find(\&wanted, "$tmpDir/$file"); +File::Find::find(\&wanted, "$tmpAbsDir/$file"); -$result = system "mv", "$tmpDir/$file.headers", $webkitLibrariesDir; +$result = system "mv", "$tmpAbsDir/$file.headers", $webkitLibrariesDir; print STDERR "Couldn't move $file.headers to $webkitLibrariesDir" . ".\n" if $result; print "The $file has been sucessfully installed in\n $webkitLibrariesDir\n"; |