Changeset 977


Ignore:
Timestamp:
Aug 13, 2011, 10:49:04 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: gnumake/os2: Fixed r953 regression.

Would not detect all matched cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/os2/gnumake.cpp

    r974 r977  
    9797    // it at runtime.
    9898    QString ret = path;
    99     if (!path.contains("$(") || (ret = escapeFileVars(path)) == path) {
     99    bool matched = false;
     100    if (path.contains("$("))
     101        ret = escapeFileVars(path, &matched);
     102    if (!matched) {
    100103        // didn't find variable references, do plain escaping
    101104        ret.remove('\"');
     
    821824
    822825// static
    823 QString GNUMakefileGenerator::escapeFileVars(const QString &vars)
     826QString GNUMakefileGenerator::escapeFileVars(const QString &vars)
    824827{
    825828    /* In DOS environment, we escape spaces and other illegal characters in
     
    835838    rx.setMinimal(true);
    836839    int pos = 0;
     840
    837841    while ((pos = rx.indexIn(ret, pos)) != -1) {
     842
    838843        QString var = rx.cap(1);
    839844        if (var.isEmpty())
     
    850855        }
    851856    }
     857
     858
    852859    return ret;
    853860}
Note: See TracChangeset for help on using the changeset viewer.