Changeset 8330 for trunk/tools


Ignore:
Timestamp:
Apr 30, 2002, 5:55:02 AM (23 years ago)
Author:
bird
Message:

Added mode BUILD_ENVs are linker identifiers.

File:
1 edited

Legend:

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

    r8329 r8330  
    1 /* $Id: MapSym.cmd,v 1.1 2002-04-30 03:26:07 bird Exp $
     1/* $Id: MapSym.cmd,v 1.2 2002-04-30 03:55:02 bird Exp $
    22 *
    33 * Helper script for calling MAPSYM.EXE.
     
    1212 * Configuration.
    1313 */
    14 sLinkers = ';watcom;vac3xx;vac40;link386;'
     14sWatcom = ';wat11c;wat11;watcom;'
     15sIBMOld = ';vac3xx;vac365;vac308;link386;emx;emxpgcc;mscv6;ibmold;'
     16sVAC40  = ';vac40;'
     17sLinkers = ';vac3xx;vac365;vac308;vac40;link386;mscv6;watcom;wat11;wat11c;emx;emxpgcc;ibmold;'
    1518
    1619/*
     
    3538    exit(16);
    3639end
     40
     41
     42/*
     43 * Convert linker input.
     44 */
    3745sLinker = translate(sLinker);           /* easier to compare */
    38 
     46if (pos(';'||sLinker||';', translate(sWatcom)) > 0) then
     47    sLinker = 'WATCOM';
     48if (pos(';'||sLinker||';', translate(sIBMOld)) > 0) then
     49    sLinker = 'IBMOLD';
     50if (pos(';'||sLinker||';', translate(sVAC40)) > 0) then
     51    sLinker = 'VAC40';
    3952
    4053/*
     
    8093 */
    8194select
    82     when ((sLinker = 'LINK386') | (sLinker = 'VAC3XX')) then
     95    when (sLinker = 'IBMOLD') then
    8396    do
    8497        '@copy' sMapFile sTmpMapFile
     
    157170
    158171
    159 
     172/**
     173 * Display usage info.
     174 */
    160175syntax: procedure;
    161176    say 'syntax: MapSym.cmd <linker> <mapfile> <symfile>';
    162     say '   linker      watcom, vac3xx, link386 or vac40.';
     177    say '   linker      watcom, vac3xx, link386 or vac40. All $(BUILD_ENV).';
    163178    say '   mapfile     Name of the input map file.';
    164179    say '   symfile     Name of the output sym file.';
Note: See TracChangeset for help on using the changeset viewer.