Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/qdoc3/command.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4848#include "command.h"
    4949
     50#include <stdlib.h>
     51
    5052QT_BEGIN_NAMESPACE
    5153
     
    7072        toolName.truncate(space);
    7173
     74#ifdef QT_BOOTSTRAPPED
     75    int status = system(qPrintable(actualCommand));
     76    int exitCode = WEXITSTATUS(status);
     77    if (status == -1 || exitCode != EXIT_SUCCESS)
     78        location.fatal(QString("Error executing '$1': $2").arg(toolName).arg(exitCode));
     79#else
    7280    QProcess process;
    7381    process.start(QLatin1String("sh"),
     
    9098                          "It emitted these errors:\n%2")
    9199                       .arg(actualCommand).arg(errors));
     100#endif
    92101}
    93102
Note: See TracChangeset for help on using the changeset viewer.