From: Martin Mares Date: Thu, 5 Feb 2004 20:27:23 +0000 (+0000) Subject: Any non-zero value enables an option. (Allows CONFIG_NUM_CONTEXTS to be X-Git-Tag: holmes-import~1122 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=95d2d7fae73701c183beeb39aad29f076b02a115;p=libucw.git Any non-zero value enables an option. (Allows CONFIG_NUM_CONTEXTS to be recognized as a switch.) --- diff --git a/build/genconf b/build/genconf index b088a142..7a53dc1b 100755 --- a/build/genconf +++ b/build/genconf @@ -10,7 +10,7 @@ use warnings; open CF, $ARGV[2] or die "Unable to open $ARGV[2]"; my %options = (); while () { - /^(CONFIG_\w+)=1/ || next; + /^(CONFIG_\w+)=[^0]/ || next; $options{$1} = 1; } close CF;