Changeset 95733 in webkit
- Timestamp:
- Sep 22, 2011 10:47:40 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r95732 r95733 1 2011-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 1 24 2011-09-22 Adam Roben <aroben@apple.com> 2 25 -
trunk/Tools/Scripts/old-run-webkit-tests
r93502 r95733 2713 2713 } 2714 2714 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 still2729 # return a successful exit code. So we double-check here that the value we tried to write to the2730 # registry was really written.2731 return !$error && readRegistryString($valueName) eq $string;2732 }2733 2734 2715 sub setUpWindowsCrashLogSaving() 2735 2716 { -
trunk/Tools/Scripts/webkitdirs.pm
r95732 r95733 566 566 $safariBundle = "/Applications/Safari.app"; 567 567 } elsif (isAppleWinWebKit()) { 568 $safariBundle = `"$configurationProductDir/FindSafari.exe"`;568 $safariBundle = readRegistryString("/HKLM/SOFTWARE/Apple Computer, Inc./Safari/InstallDir"); 569 569 $safariBundle =~ s/[\r\n]+$//; 570 570 $safariBundle = `cygpath -u '$safariBundle'` if isCygwin(); … … 2142 2142 } 2143 2143 2144 sub readRegistryString 2145 { 2146 my ($valueName) = @_; 2147 chomp(my $string = `regtool --wow32 get "$valueName"`); 2148 return $string; 2149 } 2150 2151 sub 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 2144 2163 1;
Note: See TracChangeset
for help on using the changeset viewer.