-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetenv.cmd.template
More file actions
50 lines (44 loc) · 1.65 KB
/
Copy pathsetenv.cmd.template
File metadata and controls
50 lines (44 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* setenv.cmd
*
* This script defines and setup the build environment for building the MultiMac drivers
*
* 24-Mar-2012: DAZ created.
*
* You'll have to edit this to set the correct paths.
* if you already have these set in your environment, this command file will use what you already
* have setup.
*/
VENDOR=EnvVar_Get_If('VENDOR','Unknown'); /* Your name here. */
WATCOM=EnvVar_Get_If('WATCOM','E:\Watcom'); /* the base of the Watcom installation on your system. */
TOOLKIT=EnvVar_Get_If('TOOLKIT','e:\os2tk45'); /* the base of the Toolkit (4.5) on you system. */
DDK=EnvVar_Get_If('DDK','e:\MiniDDK'); /* the base of the DDK */
/* You ONLY need the kits necessary for the driver you are building.
* You DO NOT need all of these kits unless you are building ALL of the drivers.
*/
DRV32KIT=EnvVar_Get_If('DRV16KIT','f:\src\common');
DRV32KIT=EnvVar_Get_If('DRV32KIT','f:\src\common');
LCL32KIT=EnvVar_Get_If('LCL32KIT','f:\src\os2\Lcl32');
BCL32KIT=EnvVar_Get_If('BCL32KIT','f:\src\os2\Bcl32');
/* you should not need to change anything below this line */
ROOT=DIRECTORY();
ENV='OS2ENVIRONMENT';
rc=VALUE('ROOT', ROOT, ENV);
rc=VALUE('VENDOR', VENDOR, ENV);
rc=VALUE('BLD_DATE', date('S'), ENV);
rc=VALUE('WATCOM', WATCOM, ENV);
rc=VALUE('DDK', DDK, ENV);
rc=VALUE('TOOLKIT', TOOLKIT, ENV);
rc=VALUE('DRV16KIT', DRV32KIT, ENV);
rc=VALUE('DRV32KIT', DRV32KIT, ENV);
rc=VALUE('LCL32KIT', LCL32KIT, ENV);
rc=VALUE('BCL32KIT', BCL32KIT, ENV);
exit;
/*
* Returns value of sEnvVar from environment if set or returns default value.
*/
EnvVar_Get_If: procedure
parse arg sEnvVar, sDefault;
s = value(sEnvVar,, 'OS2ENVIRONMENT')
if s == '' then
s = sDefault;
return s;