Ignore:
Timestamp:
Aug 17, 2011, 4:21:20 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: gnumake/os2: Don't trim trailing separators when escaping paths.

To be compatible with other generators don't do it (e.g. the value of DESTDIR
in the Makefile on Win32 retains the trailing slash it gets during internal qmake
processing).

File:
1 edited

Legend:

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

    r992 r996  
    7474    // we assume that make variables contain paths already properly escaped
    7575    if (!path.contains(QRegExp("\\$\\(([^$)]+)\\)"))) {
    76         ret = Option::fixPathToTargetOS(path, false);
    7776        if (!isDosLikeShell()) {
    7877            ret.remove('\"');
     
    8180        } else {
    8281            ret.replace(QRegExp("\""), "");
    83             ret.replace(QRegExp("[\\\\/]$"), "");
     82            ret.replace();
    8483            if (ret.contains(QRegExp("[ +&;%]")))
    8584                ret = quote + ret + quote;
     
    107106        // other places (e.g. .cpp targets); this function will do it for
    108107        // QMAKE_EXTRA_TARGETS as well
    109         ret = Option::fixPathToTargetOS(ret, false);
    110108        if (!isDosLikeShell())
    111109            ret.replace('\\', '/');
     110
     111
    112112    }
    113113    return ret;
Note: See TracChangeset for help on using the changeset viewer.