Changeset 9025 for trunk/tools


Ignore:
Timestamp:
Aug 18, 2002, 3:48:54 PM (23 years ago)
Author:
bird
Message:

Added '~'.

File:
1 edited

Legend:

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

    r9024 r9025  
    1 /* $Id: buildenv.cmd,v 1.14 2002-08-18 13:29:20 bird Exp $
     1/* $Id: buildenv.cmd,v 1.15 2002-08-18 13:48:54 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 *             
     16 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net)
     17 *
     18 * GPL v2
     19 *
    1520 */
    1621   
     
    2227     * Version
    2328     */
    24     sVersion = '1.0.1 [2002-08-18]';
     29    sVersion = '1.0.2 [2002-08-18]';
    2530   
    2631    /*
     
    5156        say ''
    5257        say 'Actions:'
    53         say '   +   Install tools in environment. Default action.'
    54         say '   -   Remove tools from environment.'
     58        say '   +   Install tool in environment. Default action.'
     59        say '   ~   Install tool in environment if it''s configured.'
     60        say '   -   Remove tool from environment.'
    5561        say '   *   Configure tool if needed.'
    5662        say '   !   Forced tool configuretion.'
     
    155161         */
    156162        ch = substr(sEnv.i, length(sEnv.i), 1);
    157         if (ch = '-' | ch = '+' | ch = '*' | ch = '!' | ch = '?' | ch = '@') then
     163        if (ch = '-' | ch = '+' | ch = '*' | ch = '!' | ch = '?' | ch = '@' | ch = '~') then
    158164            sEnv.i = substr(sEnv.i, 1, length(sEnv.i) - 1);
     165        else
     166            ch = '+';
    159167        fRM = (ch = '-');
    160168        fCfg = (ch = '*');
     
    162170        fVerify = (ch = '@')
    163171        fQuery = (ch = '?')
     172        fOptional = (ch = '~')
    164173
    165174        /*
     
    271280                        else if (fQuery) then
    272281                        do
    273                             /*rc = CfgVerify(j, 1, 1);*/
    274282                            rc = 0;
    275283                            if (\CfgIsConfigured(j)) then
     
    277285                        end
    278286                        else
    279                             rc = CfgInstallUninstall(j, fRM);
     287                        do
     288                            if (\fOptional) then
     289                                rc = CfgInstallUninstall(j, fRM);
     290                            else if (CfgIsConfigured(j)) then
     291                                rc = CfgInstallUninstall(j, fRM);
     292                        end
    280293                        leave;
    281294                    end
Note: See TracChangeset for help on using the changeset viewer.