Changeset 153


Ignore:
Timestamp:
Aug 31, 2009, 4:11:39 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake/os2/gnumake: Corrected the space escaping function definition; could wrongly add a trailing space to the argument.

File:
1 edited

Legend:

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

    r119 r153  
    231231    /* function to convert from DOS-like to Unix-like space escaping in file
    232232     * names */
     233
     234
    233235    t << "q = $(subst %,\\%,$(subst ;,\\;,$(subst &,\\&,"
    234236         "$(subst +,\\+,$(subst $(space),\\ ,$(subst \",,$(1)))))))" << endl << endl;
     
    688690     * filenames with double quotes. However, this is not appropriate for make
    689691     * rule definitions (targets/dependencies) where Unix escaping is
    690      * expected. For this reason, we must convert escaping to Unix mode using
    691      * the q function that we define in writeMakefile() */
     692     * expected. If we'd deal only with immediate strings, we could provide
     693     * necessary escaping in place, but we often use make variables instead of
     694     * direct file names so we must perform such escaping on the fly. This is
     695     * what we do here using the q function that we define in writeMakefile().*/
    692696    if (isDosLikeShell()) {
    693697        QString ret = vars;
Note: See TracChangeset for help on using the changeset viewer.