Changeset 8295 for trunk/tools


Ignore:
Timestamp:
Apr 22, 2002, 4:01:37 AM (23 years ago)
Author:
bird
Message:

echo off! @'s. '-' = start; '*' = same shell. Watcom 11.0c changed BUILD_ENV to WAT11C.

File:
1 edited

Legend:

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

    r8271 r8295  
    1 /* $Id: buildenv.cmd,v 1.4 2002-04-16 00:10:12 bird Exp $
     1/* $Id: buildenv.cmd,v 1.5 2002-04-22 02:01:37 bird Exp $
    22 *
    33 * This is the master environment script. It contains settings for many
     
    2020 */
    2121
     22    Address CMD '@echo off';
    2223
    2324    /*
     
    5657    do i = 1 to sEnv.0
    5758        /* uses dash to mark end of arguments */
    58         if (sEnv.i = '-') then
     59        if ((sEnv.i = '-') | (sEnv.i = '*')) then
    5960            leave;
    6061
     
    7778        rc = 0;
    7879        select
    79             when (sEnv.i = 'mode8050') then     Address CMD 'mode 80,50'
    80             when (sEnv.i = 'mode12050') then    Address CMD 'mode 120,50'
     80            when (sEnv.i = 'mode8050') then     Address CMD '@mode 80,50'
     81            when (sEnv.i = 'mode12050') then    Address CMD '@mode 120,50'
    8182            when (sEnv.i = 'cvs') then          rc = CVS(fRM);
    8283            when (sEnv.i = 'db2v52') then       rc = db2v52(fRM);
     
    145146    /*
    146147     * Check for command to execute.
    147      * (I.e. if there are more arguments left. after the dash.)
     148     * (I.e. if there are more arguments left. after the dash/star.)
    148149     */
    149150    if (i < sEnv.0) then
    150151    do
     152        chType = sEnv.i;
     153
    151154        sCmd = '';
    152155        do while (i < sEnv.0)
     
    154157            sCmd = sCmd ||' '||sEnv.i;
    155158        end
    156         Address CMD 'start /F' sCMD;
    157         Address CMD 'exit';
     159
     160        if (chType = '-') then
     161        do
     162            Address CMD 'start /F' sCMD;
     163            Address CMD 'exit';
     164        end
     165        else
     166            Address CMD sCMD;
    158167        exit(rc);
    159168    end
     
    941950    call EnvVar_Set      fRM, 'PATH_WATCOM', sPathWatcom
    942951    call EnvVar_Set      fRM, 'CCENV',      'WAT'
    943     call EnvVar_Set      fRM, 'BUILD_ENV',  'WAT11'
     952    call EnvVar_Set      fRM, 'BUILD_ENV',  'WAT11C'
    944953    call EnvVar_Set      fRM, 'BUILD_PLATFORM', 'OS2'
    945954
     
    11651174    /* force environment expansion by setting a lot of variables and freeing them. */
    11661175    do i = 1 to 100
    1167         Address CMD 'set dummyenvvar'||i'=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
     1176        Address CMD '@set dummyenvvar'||i'=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    11681177    end
    11691178    do i = 1 to 100
    1170         Address CMD 'set dummyenvvar'||i'=';
     1179        Address CMD '@set dummyenvvar'||i'=';
    11711180    end
    11721181return 0;
Note: See TracChangeset for help on using the changeset viewer.