Changeset 18863
- Timestamp:
- Apr 29, 2002, 1:29:16 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/win32k/configure.cmd ¶
r16506 r18863 1 /* $Id: configure.cmd,v 1.2 1 2001-06-10 01:43:36 bird Exp $1 /* $Id: configure.cmd,v 1.22 2002-04-29 11:29:16 bird Exp $ 2 2 * 3 3 * Configuration script. 4 4 * Generates makefile.inc and an empty .depend file. 5 5 * 6 * Copyright (c) 1999-200 1 knut st. osmundsen (knut.stange.osmundsen@mynd.no)6 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net) 7 7 * 8 8 * Project Odin Software License can be found in LICENSE.TXT … … 15 15 fInteractive = 1; 16 16 fWin32k = 1; 17 fWithKLib = 0; 17 18 18 19 /* parse arguments */ … … 35 36 when (ch = 'W') then 36 37 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 37 50 when (ch = '?' | ch = 'H' | substr(sArg, 1, 2) = '-H') then 38 51 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.' 44 58 exit(1); 45 59 end … … 69 83 call lineout sIncFile, '################################################################################' 70 84 sWin32kBase = directory(); 85 call lineout sIncFile, 'PATH_WIN32K =' sWin32kBase; 86 call lineout sIncFile, 'PATH_KKRNLLIB =' sWin32kBase'\kKrnlLib'; 71 87 call lineout sIncFile, 'WIN32KBASE =' sWin32kBase; 72 88 call lineout sIncFile, 'WIN32KDEV16 =' sWin32kBase'\dev16' … … 176 192 exit 1; 177 193 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 178 215 exit 0; 179 216 … … 264 301 return ''; 265 302 303 304 305 /** 306 * Changes the directory. 307 * On error we will call failure. 308 * @returns success indicator. 309 */ 310 ChDir: 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 319 return 1; 320
Note:
See TracChangeset
for help on using the changeset viewer.