Changeset 5499 for trunk/src


Ignore:
Timestamp:
Apr 14, 2001, 9:22:12 AM (24 years ago)
Author:
bird
Message:

Added option for omitting win32k.sys. (-w)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/configure.cmd

    r5296 r5499  
    1 /* $Id: configure.cmd,v 1.17 2001-03-11 16:45:28 bird Exp $
     1/* $Id: configure.cmd,v 1.18 2001-04-14 07:22:12 bird Exp $
    22 *
    33 * Configuration script.
     
    1212    call SysLoadFuncs;
    1313
    14     /* check for silent argument */
    15     parse arg fNonInteractive
    16     if (fNonInteractive <> '') then
    17         fInteractive = 0;
    18     else
    19         fInteractive = 1;
     14    /* Argument defaults */
     15    fInteractive    = 1;
     16    fWin32k         = 1;
     17
     18    /* parse arguments */
     19    parse arg asArgs.1 asArgs.2 asArgs.3 asArgs.4 asArgs.5 asArgs.6 asArgs.7 asArgs.8 asArgs.9
     20    asArgs.0 = 0;
     21    do i = 1 to 9
     22        if (asArgs.i <> '') then
     23            asArgs.0 = i;
     24    end
     25    do i = 1 to asArgs.0
     26        if (substr(asArgs.i, 1, 1) = '-' | substr(asArgs.i, 1, 1) = '/')  then
     27        do
     28            sArg = translate(substr(asArgs.i, 2));
     29            ch = substr(sArg, 1, 1);
     30            select
     31                when (ch = 'N') then
     32                    fInteractive = 0;
     33                when (ch = 'I') then
     34                    fInteractive = 1;
     35                when (ch = 'W') then
     36                    fWin32k = 0;
     37                when (ch = '?' | ch = 'H' | substr(sArg, 1, 2) = '-H') then
     38                do
     39                    say 'Odin32 Configure.cmd. $Revision: 1.18 $.'
     40                    say 'syntax: Configure.cmd [-n] [-w]'
     41                    say '  -n   Noninteractive.'
     42                    say '  -w   Don''t build Win32k.'
     43                    say '  -h   This text.'
     44                    exit(1);
     45                end
     46                otherwise
     47                    say 'syntax error ('asArgs.i')';
     48                    exit(2);
     49            end
     50        end
     51    end
    2052
    2153    /* strings */
     
    149181 *   sPath-sFile ignoring '..\'s in sFile.
    150182 */
    151 SearchPaths: procedure expose fInteractive;
     183SearchPaths: procedure expose fInteractive fWin32k;
     184    /*
     185     * Check if there is need to waste time searching.
     186     * Init local variables.
     187     */
     188    if (\fWin32k) then
     189        return '';
    152190    i = 1;
    153191    sPath = '';
Note: See TracChangeset for help on using the changeset viewer.