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.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95733
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2011-09-22 Adam Roben <aroben@apple.com>
+ 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.
+
+2011-09-22 Adam Roben <aroben@apple.com>
+
Use the "direct object" form of system() to run WebKit.exe
This prevents the shell from parsing (and possibly splitting, if it contains spaces) the
return $commandFile;
}
-sub readRegistryString($)
-{
- my ($valueName) = @_;
- chomp(my $string = `regtool --wow32 get "$valueName"`);
- return $string;
-}
-
-sub writeRegistryString($$)
-{
- my ($valueName, $string) = @_;
-
- my $error = system "regtool", "--wow32", "set", "-s", $valueName, $string;
-
- # On Windows Vista/7 with UAC enabled, regtool will fail to modify the registry, but will still
- # return a successful exit code. So we double-check here that the value we tried to write to the
- # registry was really written.
- return !$error && readRegistryString($valueName) eq $string;
-}
-
sub setUpWindowsCrashLogSaving()
{
return unless isCygwin();
+++ /dev/null
-@echo off
-set script=%TMP%\run-webkit-nightly2.cmd
-set vsvars=%VS80COMNTOOLS%\vsvars32.bat
-if exist "%vsvars%" (
- copy "%vsvars%" "%script%"
-) else (
- del "%script%"
-)
-FindSafari.exe %1 /printSafariLauncher >> "%script%"
-call "%script%"
if (isAppleMacWebKit()) {
$safariBundle = "/Applications/Safari.app";
} elsif (isAppleWinWebKit()) {
- $safariBundle = `"$configurationProductDir/FindSafari.exe"`;
+ $safariBundle = readRegistryString("/HKLM/SOFTWARE/Apple Computer, Inc./Safari/InstallDir");
$safariBundle =~ s/[\r\n]+$//;
$safariBundle = `cygpath -u '$safariBundle'` if isCygwin();
$safariBundle =~ s/[\r\n]+$//;
return 1;
}
+sub readRegistryString
+{
+ my ($valueName) = @_;
+ chomp(my $string = `regtool --wow32 get "$valueName"`);
+ return $string;
+}
+
+sub writeRegistryString
+{
+ my ($valueName, $string) = @_;
+
+ my $error = system "regtool", "--wow32", "set", "-s", $valueName, $string;
+
+ # On Windows Vista/7 with UAC enabled, regtool will fail to modify the registry, but will still
+ # return a successful exit code. So we double-check here that the value we tried to write to the
+ # registry was really written.
+ return !$error && readRegistryString($valueName) eq $string;
+}
+
1;