Changeset 9110 for trunk/tools


Ignore:
Timestamp:
Aug 24, 2002, 6:33:52 AM (23 years ago)
Author:
bird
Message:

VAC40 fix from Yuri. Made copy quiet on 4OS2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/MapSym.cmd

    r8369 r9110  
    1 /* $Id: MapSym.cmd,v 1.6 2002-05-05 19:03:32 bird Exp $
     1/* $Id: MapSym.cmd,v 1.7 2002-08-24 04:33:52 bird Exp $
    22 *
    33 * Helper script for calling MAPSYM.EXE.
     
    1515sIBMOld = ';vac3xx;vac365;vac308;link386;emx;emxpgcc;mscv6;mscv6-16;ibmold;'
    1616sVAC40  = ';vac40;'
    17 sLinkers = strip(sVAC40, 'T', ';')||strip(sIBMOld, 'T', ';')||strip(sWatcom, 'T', ';')||';'
     17sLinkers= strip(sVAC40, 'T', ';')||strip(sIBMOld, 'T', ';')||strip(sWatcom, 'T', ';')||';'
     18/* look for 4os2 */
     19f4OS2   = 0;
     20Address CMD 'set 4os2test_env=%@eval[2 + 2]';
     21if (value('4os2test_env',, 'OS2ENVIRONMENT') = '4') then
     22    f4OS2 = 1;
     23sCopy = '@copy'
     24if (f4OS2) then
     25    sCopy = '@copy /Q'
    1826
    1927/*
     
    107115    when (sLinker = 'IBMOLD') then
    108116    do
    109         '@copy' sMapFile sTmpMapFile
     117        sCopy sMapFile sTmpMapFile
    110118        if (rc <> 0) then
    111119        do
     
    161169 * Copy the symfile to the target path.
    162170 */
    163 '@copy' left(sTmpMapFile, length(sTmpMapFile) - 4)||'.sym' sSymFile;
     171sCopy left(sTmpMapFile, length(sTmpMapFile) - 4)||'.sym' sSymFile;
    164172if (rc <> 0) then
    165173do
     
    287295                        if (length(sSegName) < 22) then sSegName = left(sSegName, 22, ' ');
    288296                        call lineout sOutFile, ' '||strip(iSeg)':'iSegOffset right(DecToHex(cbSegment), 9, '0'),
    289                                      ||'H     '||sSegName||' '||strip(sSegClass);
     297                                     ||'H '||sSegName||' '||strip(sSegClass);
    290298                        sSegment = '';
    291299                        cbSegment = 0;
     
    301309                if (sState = sNewState) then
    302310                do
    303                     sLine = translate(sLine, '', '"');
     311                    sLine = translate(sLine, '', '"'||d2c(9));
    304312                    if ((strip(sLine) <> '') & (pos('|', sLine) <= 0) & (pos('@', sLine) <= 0)) then
    305                         call lineout sOutFile, sLine;
     313                        call lineout sOutFile, ' '||word(sLine, 1)||'       '||word(sLine, 2);
    306314                end
    307315                else if (sNewState = 'PublicValue') then
Note: See TracChangeset for help on using the changeset viewer.