Changeset 28788 in webkit


Ignore:
Timestamp:
Dec 16, 2007 5:33:16 PM (16 years ago)
Author:
mrowe@apple.com
Message:

2007-12-16 Brent Fulgham <bfulgham@gmail.com>

Reviewed by Adam Roben.

http://bugs.webkit.org/show_bug.cgi?id=16315
FindSafari needs a path-only option.

  • FindSafari/FindSafari.cpp: (_tmain):
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r28770 r28788  
     12007-12-16  Brent Fulgham  <bfulgham@gmail.com>
     2
     3        Reviewed by Adam Roben.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=16315
     6        FindSafari needs a path-only option.
     7
     8        * FindSafari/FindSafari.cpp:
     9        (_tmain):
     10
    1112007-12-16  Alexey Proskuryakov  <ap@webkit.org>
    212
  • trunk/WebKitTools/FindSafari/FindSafari.cpp

    r27878 r28788  
    130130
    131131    bool printLauncher = false;
     132    bool printEnvironment = false;
    132133    bool debugger = false;
    133134
     
    135136        if (!_tcscmp(argv[i], TEXT("/printSafariLauncher"))) {
    136137            printLauncher = true;
     138            continue;
     139        }
     140        if (!_tcscmp(argv[i], TEXT("/printSafariEnvironment"))) {
     141            printEnvironment = true;
    137142            continue;
    138143        }
     
    143148    }
    144149
    145     if (!printLauncher) {
     150    // printLauncher is inclusive of printEnvironment, so do not
     151    // leave both enabled:
     152    if (printLauncher && printEnvironment)
     153        printEnvironment = false;
     154
     155    if (!printLauncher && !printEnvironment) {
    146156        _tprintf(TEXT("%s\n"), path);
    147157        free(path);
     
    177187
    178188    LPCTSTR* endLines = debugger ? debuggerLines : launchLines;
    179     for (unsigned i = 0; i < (debugger ? ARRAYSIZE(debuggerLines) : ARRAYSIZE(launchLines)); ++i) {
    180         _tprintf(endLines[i], command);
    181         _tprintf(TEXT("\n"));
     189
     190    // Don't print launch command if we just want the environment set up...
     191    if (!printEnvironment) {
     192       for (unsigned i = 0; i < (debugger ? ARRAYSIZE(debuggerLines) : ARRAYSIZE(launchLines)); ++i) {
     193           _tprintf(endLines[i], command);
     194           _tprintf(TEXT("\n"));
     195       }
    182196    }
    183197
Note: See TracChangeset for help on using the changeset viewer.