Changeset 956


Ignore:
Timestamp:
Aug 10, 2011, 7:00:44 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: gnumake/os2: Fix using relative cmd paths in mapsym wrapper.

It is necessary since the path to the mapsym command may be relative
(as in case of wmapsym). Note that for this to work we had to add argument
quoting support since REXX doesn't have it per se.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/os2-g++/runmapsym.cmd

    r954 r956  
    88'@echo off'
    99
    10 parse arg aMapSymEXE aMapFile aSymFile
     10if (RxFuncQuery('SysLoadFuncs')) then do
     11    call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
     12    call SysLoadFuncs
     13end
    1114
    12 if (aMapSymEXE == '' | aMapFile == '' | aSymFile == '') then do
     15parse arg aArgs
     16call TokenizeString aArgs, 'G.!args'
     17
     18if (G.!args.0 < 3) then do
    1319    say "Usage: runmapsym <mapsym_cmd> <map_file> <sym_file>"
    1420    exit 255
    1521end
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
    1644
    1745mapFile = stream(aMapFile, 'C', 'QUERY EXISTS')
     
    2048    exit 255
    2149end
    22 
    23 curDir = directory()
    2450
    2551symDir = filespec('D', aSymFile)||filespec('P', aSymFile)
     
    3460symFile = fileSpec('N', aSymFile)
    3561
    36 'call' aMapSymExe mapFile
     62'call' apSymExe mapFile
    3763
    3864if (rc \== 0) then do
     
    5783
    5884exit rc
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
Note: See TracChangeset for help on using the changeset viewer.