Ignore:
Timestamp:
Jul 13, 2011, 1:49:44 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: win32/os2: Fixed: DESTDIR make variable would end with an unexpected space when the makefile is processed by a Unix-like make tool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/win32/winmakefile.cpp

    r846 r885  
    660660    t << "DIST          = " << varList("DISTFILES") << endl;
    661661    t << "QMAKE_TARGET  = " << var("QMAKE_ORIG_TARGET") << endl;
    662     // The comment is important to maintain variable compatibility with Unix
    663     // Makefiles, while not interpreting a trailing-slash as a linebreak
    664     t << "DESTDIR        = " << escapeFilePath(destDir) << " #avoid trailing-slash linebreak" << endl;
     662    t << "DESTDIR        = " << escapeFilePath(destDir) << endl;
    665663    t << "TARGET         = " << escapeFilePath(target) << endl;
    666664    t << "DESTDIR_TARGET = " << escapeFilePath(var("DEST_TARGET")) << endl;
     
    880878    if(!ret.isEmpty()) {
    881879        ret = unescapeFilePath(ret);
    882         if(ret.contains(" "))
     880        // Note: also quote paths ending with the backslash to avoid
     881        // interpreting it as a linebreak
     882        if(ret.contains(' ') || ret.endsWith('\\'))
    883883            ret = "\"" + ret + "\"";
    884884        debug_msg(2, "EscapeFilePath: %s -> %s", path.toLatin1().constData(), ret.toLatin1().constData());
Note: See TracChangeset for help on using the changeset viewer.