Changeset 95733 in webkit


Ignore:
Timestamp:
Sep 22, 2011 10:47:40 AM (13 years ago)
Author:
Adam Roben
Message:

Remove all uses of FindSafari

It isn't really needed anymore.

Fixes <http://webkit.org/b/68626>.

Reviewed by Darin Adler.

  • Scripts/old-run-webkit-tests: Moved read/writeRegistryString from here to webkitdirs.pm.
  • Scripts/run-webkit-nightly.cmd: Removed. This used to be used to launch nightly builds of

WebKit, but now we use WebKit.exe for that.

  • Scripts/webkitdirs.pm:

(installedSafariPath): Changed to use readRegistryString instead of invoking FindSafari to
do the same thing.

(readRegistryString):
(writeRegistryString):
Moved here from old-run-webkit-tests.

Location:
trunk/Tools
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r95732 r95733  
     12011-09-22  Adam Roben  <aroben@apple.com>
     2
     3        Remove all uses of FindSafari
     4
     5        It isn't really needed anymore.
     6
     7        Fixes <http://webkit.org/b/68626>.
     8
     9        Reviewed by Darin Adler.
     10
     11        * Scripts/old-run-webkit-tests: Moved read/writeRegistryString from here to webkitdirs.pm.
     12
     13        * Scripts/run-webkit-nightly.cmd: Removed. This used to be used to launch nightly builds of
     14        WebKit, but now we use WebKit.exe for that.
     15
     16        * Scripts/webkitdirs.pm:
     17        (installedSafariPath): Changed to use readRegistryString instead of invoking FindSafari to
     18        do the same thing.
     19
     20        (readRegistryString):
     21        (writeRegistryString):
     22        Moved here from old-run-webkit-tests.
     23
    1242011-09-22  Adam Roben  <aroben@apple.com>
    225
  • trunk/Tools/Scripts/old-run-webkit-tests

    r93502 r95733  
    27132713}
    27142714
    2715 sub readRegistryString($)
    2716 {
    2717     my ($valueName) = @_;
    2718     chomp(my $string = `regtool --wow32 get "$valueName"`);
    2719     return $string;
    2720 }
    2721 
    2722 sub writeRegistryString($$)
    2723 {
    2724     my ($valueName, $string) = @_;
    2725 
    2726     my $error = system "regtool", "--wow32", "set", "-s", $valueName, $string;
    2727 
    2728     # On Windows Vista/7 with UAC enabled, regtool will fail to modify the registry, but will still
    2729     # return a successful exit code. So we double-check here that the value we tried to write to the
    2730     # registry was really written.
    2731     return !$error && readRegistryString($valueName) eq $string;
    2732 }
    2733 
    27342715sub setUpWindowsCrashLogSaving()
    27352716{
  • trunk/Tools/Scripts/webkitdirs.pm

    r95732 r95733  
    566566        $safariBundle = "/Applications/Safari.app";
    567567    } elsif (isAppleWinWebKit()) {
    568         $safariBundle = `"$configurationProductDir/FindSafari.exe"`;
     568        $safariBundle = readRegistryString("/HKLM/SOFTWARE/Apple Computer, Inc./Safari/InstallDir");
    569569        $safariBundle =~ s/[\r\n]+$//;
    570570        $safariBundle = `cygpath -u '$safariBundle'` if isCygwin();
     
    21422142}
    21432143
     2144sub readRegistryString
     2145{
     2146    my ($valueName) = @_;
     2147    chomp(my $string = `regtool --wow32 get "$valueName"`);
     2148    return $string;
     2149}
     2150
     2151sub writeRegistryString
     2152{
     2153    my ($valueName, $string) = @_;
     2154
     2155    my $error = system "regtool", "--wow32", "set", "-s", $valueName, $string;
     2156
     2157    # On Windows Vista/7 with UAC enabled, regtool will fail to modify the registry, but will still
     2158    # return a successful exit code. So we double-check here that the value we tried to write to the
     2159    # registry was really written.
     2160    return !$error && readRegistryString($valueName) eq $string;
     2161}
     2162
    214421631;
Note: See TracChangeset for help on using the changeset viewer.