Changeset 9112 for trunk/tools


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

Corrected nmake and nmake32 checks in toolkit451. Added support for if exist removal.

File:
1 edited

Legend:

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

    r9025 r9112  
    1 /* $Id: buildenv.cmd,v 1.15 2002-08-18 13:48:54 bird Exp $
     1/* $Id: buildenv.cmd,v 1.16 2002-08-24 04:37:22 bird Exp $
    22 *
    33 * This is the master tools environment script. It contains environment
     
    1313 *       those the original value, for example of no_NO, is not restored.
    1414 *     - Same goes for some other stuff, we have no stack of previous values.
    15  *             
     15 *
    1616 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net)
    1717 *
     
    1919 *
    2020 */
    21    
     21
    2222    Address CMD '@echo off';
    2323
     
    2828     */
    2929    sVersion = '1.0.2 [2002-08-18]';
    30    
     30
    3131    /*
    3232     * Create argument array with lowercase arguments.
     
    4444     * Syntax
    4545     */
    46     if (sEnv.0 = 0) then 
     46    if (sEnv.0 = 0) then
    4747    do
    4848        say 'BuildEnv v'||sVersion
     
    5959        say '   ~   Install tool in environment if it''s configured.'
    6060        say '   -   Remove tool from environment.'
     61        say '   õ   Remove tool from environment if it''s configured.'
    6162        say '   *   Configure tool if needed.'
    6263        say '   !   Forced tool configuretion.'
     
    161162         */
    162163        ch = substr(sEnv.i, length(sEnv.i), 1);
    163         if (ch = '-' | ch = '+' | ch = '*' | ch = '!' | ch = '?' | ch = '@' | ch = '~') then
     164        if (pos(ch, '+~-õ*!?@') > 0) then
    164165            sEnv.i = substr(sEnv.i, 1, length(sEnv.i) - 1);
    165166        else
    166167            ch = '+';
    167         fRM = (ch = '-');
     168        fRM = (ch = '-' | ch = 'õ');
     169        fOptional = (ch = '~' | ch = 'õ')
    168170        fCfg = (ch = '*');
    169171        fForcedCfg = (ch = '!');
    170172        fVerify = (ch = '@')
    171173        fQuery = (ch = '?')
    172         fOptional = (ch = '~')
    173174
    174175        /*
     
    338339NoValueHandler:
    339340    say 'NoValueHandler: line 'SIGL;
    340 return;
     341return 0;
    341342
    342343
     
    22742275return rc;
    22752276
    2276  
     2277
    22772278
    22782279/*
     
    25392540        rc = CheckCmdOutput('ipfc', 0, fQuiet, 'Version 4.00.007 Oct 02 2000');
    25402541    if (rc = 0) then
    2541         rc = CheckCmdOutput('nmake', 2, fQuiet, 'Version 4.00.000 Oct 20 2000');
    2542     if (rc = 0) then
    2543         rc = CheckCmdOutput('nmake32', 0, fQuiet, 'Version 5.00.003 Oct 20 2000');
     2542        rc = CheckCmdOutput('nmake -?', 0, fQuiet, 'Version 4.00.000 Oct 20 2000');
     2543    if (rc = 0) then
     2544        rc = CheckCmdOutput('nmake32 -?', 0, fQuiet, 'Version 5.00.003 Oct 20 2000');
    25442545return rc;
    25452546
Note: See TracChangeset for help on using the changeset viewer.