Changeset 18863


Ignore:
Timestamp:
Apr 29, 2002, 1:29:16 PM (23 years ago)
Author:
bird
Message:

--with-klib option.

File:
1 edited

Legend:

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

    r16506 r18863  
    1 /* $Id: configure.cmd,v 1.21 2001-06-10 01:43:36 bird Exp $
     1/* $Id: configure.cmd,v 1.22 2002-04-29 11:29:16 bird Exp $
    22 *
    33 * Configuration script.
    44 * Generates makefile.inc and an empty .depend file.
    55 *
    6  * Copyright (c) 1999-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     6 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net)
    77 *
    88 * Project Odin Software License can be found in LICENSE.TXT
     
    1515    fInteractive    = 1;
    1616    fWin32k         = 1;
     17    fWithKLib       = 0;
    1718
    1819    /* parse arguments */
     
    3536                when (ch = 'W') then
    3637                    fWin32k = 0;
     38                when (ch = '-') then
     39                do
     40                    parse var sArg sParm'='sOpt
     41                    say sParm
     42                    select
     43                        when (sParm = '-WITH-KLIB') then
     44                            fWithKLib = 1;
     45                        otherwise
     46                            say 'syntax error ('asArgs.i')';
     47                            exit(2);
     48                    end
     49                end
    3750                when (ch = '?' | ch = 'H' | substr(sArg, 1, 2) = '-H') then
    3851                do
    39                     say 'Odin32 Configure.cmd. $Revision: 1.21 $.'
    40                     say 'syntax: Configure.cmd [-n] [-w]'
    41                     say '  -n   Noninteractive.'
    42                     say '  -w   Don''t build Win32k.'
    43                     say '  -h   This text.'
     52                    say 'syntax: Configure.cmd [options]'
     53                    say '  -n           Noninteractive.'
     54                    say '  -w           Don''t build Win32k.'
     55                    say '  --with-klib  Build with kLib. (Will checkout kLib for you.)'
     56                    say '  -h           This text.'
     57                    say '  -h           This text.'
    4458                    exit(1);
    4559                end
     
    6983        call lineout sIncFile, '################################################################################'
    7084        sWin32kBase = directory();
     85        call lineout sIncFile, 'PATH_WIN32K      =' sWin32kBase;
     86        call lineout sIncFile, 'PATH_KKRNLLIB    =' sWin32kBase'\kKrnlLib';
    7187        call lineout sIncFile, 'WIN32KBASE       =' sWin32kBase;
    7288        call lineout sIncFile, 'WIN32KDEV16      =' sWin32kBase'\dev16'
     
    176192        exit 1;
    177193    end
     194
     195    /*
     196     * Checkout K-Lib
     197     */
     198    if (fWithKLib) then
     199    do
     200        sDir = directory();
     201        if (chdir('kKrnlLib')) then
     202        do
     203            if (fInteractive) then
     204            do
     205                say 'Log in to the kLib cvs repository? (Y/N)';
     206                pull sAnswer
     207                if (substr(sAnswer, 1, 1) = 'Y') then
     208                    'cvs -d:pserver:readonly@www.netlabs.org:/netlabs.cvs/ktaskmanager login'
     209            end
     210            'cvs -d:pserver:readonly@www.netlabs.org:/netlabs.cvs/ktaskmanager co kLibSrc kLibInclude'
     211        end
     212        call directory sDir;
     213    end
     214
    178215    exit 0;
    179216
     
    264301return '';
    265302
     303
     304
     305/**
     306 * Changes the directory.
     307 * On error we will call failure.
     308 * @returns success indicator.
     309 */
     310ChDir: procedure expose sStartDir;
     311    parse arg sDir
     312
     313    'cd' sDir
     314    if (rc <> 0) then
     315    do
     316        call failure rc, 'Failed to ChDir into' sDir '(CWD='directory()').'
     317        return 0;
     318    end
     319return 1;
     320
Note: See TracChangeset for help on using the changeset viewer.