RESOLVED FIXED 30288
jsc scripts cleanup and Qt/GTK fix
https://bugs.webkit.org/show_bug.cgi?id=30288
Summary jsc scripts cleanup and Qt/GTK fix
Csaba Osztrogonác
Reported 2009-10-11 16:13:15 PDT
In jsc scripts there are unnecessary code duplications: - sub jscPath($) We should move it to webkitdirs.pm. -my $productDir = productDir(); - -$productDir .= "/JavaScriptCore" if isQt(); -$productDir .= "/Programs" if isGtk(); Additionally sunspider-compare-results there is a code like this, but not works with GTK port: $productDir .= "/JavaScriptCore" if (isQt() or isGtk()); We should use only one function instead of duplicated code. With Qt port on Windows $productDir must contain the configuration (release/debug) too. I propose adding a new function to webkitdirs.pm: +sub jscProductDir +{ + my $productDir = determineConfigurationProductDir(); + $productDir .= "/JavaScriptCore" if isQt(); + $productDir .= "/$configuration" if (isQt() && isWindows()); + $productDir .= "/Programs" if isGtk(); + + return $productDir; +}
Attachments
proposed patch (4.61 KB, patch)
2009-10-11 16:30 PDT, Csaba Osztrogonác
darin: review+
commit-queue: commit-queue-
Csaba Osztrogonác
Comment 1 2009-10-11 16:30:04 PDT
Created attachment 41008 [details] proposed patch
Darin Adler
Comment 2 2009-10-12 09:17:32 PDT
Comment on attachment 41008 [details] proposed patch Looks OK. r=me
WebKit Commit Bot
Comment 3 2009-10-12 13:56:59 PDT
Comment on attachment 41008 [details] proposed patch Rejecting patch 41008 from commit-queue. ossy@webkit.org does not have committer permissions according to http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/modules/committers.py.
WebKit Commit Bot
Comment 4 2009-10-12 14:07:10 PDT
Comment on attachment 41008 [details] proposed patch Rejecting patch 41008 from commit-queue. ossy@webkit.org does not have committer permissions according to http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/modules/committers.py.
Csaba Osztrogonác
Comment 5 2009-10-12 15:28:23 PDT
Sending WebKitTools/ChangeLog Sending WebKitTools/Scripts/run-javascriptcore-tests Sending WebKitTools/Scripts/run-jsc Sending WebKitTools/Scripts/run-sunspider Sending WebKitTools/Scripts/sunspider-compare-results Sending WebKitTools/Scripts/webkitdirs.pm Transmitting file data ...... Committed revision 49476.
Eric Seidel (no email)
Comment 6 2009-10-15 09:49:55 PDT
Sorry about the trouble. Unfortunately right now the commit-queue needs a manual restart every time someone is added to the committers.py file. I used to restart the commit-queue every day, and so this was never an issue. Now I restart it about once a week, so we're seeing this more often. I've restarted it just now and cq+ should work for you now. Again, my apologies for the trouble!
Note You need to log in before you can comment on or make changes to this bug.