<!-- BKW: Build Kerberos for Windows -->\r
<BKW_Config>\r
<Config>\r
- <!-- All the parameters are specified here. They can be over-ridden\r
+ <!-- All the parameters are specified here. Most can be over-ridden\r
on the command line.\r
\r
Parameters are grouped into Options, Directories, Repository and Environment.\r
<!-- Environment variables: -->>\r
<KH_RELEASE def="1" env="1" value="OFFICIAL" options="OFFICIAL PRERELEASE PRIVATE" />\r
<NODEBUG def="1" env="1" /> <!-- Interacts with /DEBUG -->\r
- \r
</Config>\r
<Stages>\r
<FetchSources>\r
# Scan the configuration for switch definitions:\r
while (($sw, $val) = each %$odr) {\r
next if (! exists $val->{def}); ## ?? Should always exist.\r
+\r
+ # Set/clear environment variables:\r
+ if ($val->{env}) {\r
+ if ($val->{def}) {$ENV{$sw} = (exists $val->{value}) ? $val->{value} : 1; }\r
+ else {delete $ENV{$sw}; }\r
+ }\r
+\r
# If the switch is in the command line, override the stored value:\r
if (exists $OPT->{$sw}) {\r
if (exists $val->{value}) {\r