* Scripts/run-safari: Fix path to Safari executable. Add check for frameworks.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jun 2005 00:34:58 +0000 (00:34 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jun 2005 00:34:58 +0000 (00:34 +0000)
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9284 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Scripts/run-safari

index 4b6eac18116b94ad7f16d13c8ccdbb275c804d50..3af7c8c6c05e65cc339c8bc1f912b930ebd8e5b3 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-05  Darin Adler  <darin@apple.com>
+
+        * Scripts/run-safari: Fix path to Safari executable. Add check for frameworks.
+
 2005-06-05  Darin Adler  <darin@apple.com>
 
         - add run-webkit-tests script; not working yet but the pieces are there
index 0eb6d1bdbfd3895b5263f6730128cd1d23e4917a..8ac4d2645bb79588eb6c38995527fb14b78bc54c 100755 (executable)
@@ -17,7 +17,24 @@ if (!$productDir) {
     die "No product directory set. Please set the 'Place Build Products' preference to 'Customized location' in XCode Building Preferences.\n";
 }
 
+# Check to see that Safari is there.
+my $safariPath = "/Applications/Safari.app/Contents/MacOS/Safari";
+if (! -x $safariPath) {
+    die "Can't find executable at $safariPath.\n";
+}
+
+# Check to see that frameworks are there.
+if (! -x "$productDir/JavaScriptCore.framework/Versions/A/JavaScriptCore") {
+    die "Can't find executable at $productDir/JavaScriptCore.framework/Versions/A/JavaScriptCore; have you built successfully?\n";
+}
+if (! -x "$productDir/WebCore.framework/Versions/A/WebCore") {
+    die "Can't find executable at $productDir/WebCore.framework/Versions/A/WebCore; have you built successfully?\n";
+}
+if (! -x "$productDir/WebKit.framework/Versions/A/WebKit") {
+    die "Can't find executable at $productDir/WebKit.framework/Versions/A/WebKit; have you built successfully?\n";
+}
+
 # Set up DYLD_FRAMEWORK_PATH to point to the product directory.
 print "Start Safari with DYLD_FRAMEWORK_PATH set to point to built WebKit in $productDir.\n";
 $ENV{DYLD_FRAMEWORK_PATH} = $productDir;
-exec "/Applications/Safari.app/MacOS/Contents/Safari" or die;
+exec $safariPath or die;