X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=build%2Fgenconf;h=0d7bc7370e24dd0b423a940c5265cf0e2dd385fb;hb=b4d79987a979bcbf749294c706fdc8c4ae8f9304;hp=b088a142d17c072f9f7ed7b598d14d259d32f379;hpb=e270ec25872050be5a969a4a5b85f888e9ec5468;p=libucw.git diff --git a/build/genconf b/build/genconf index b088a142..0d7bc737 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; @@ -36,7 +36,11 @@ while () { $empty && next; $empty = 1; } else { $empty = 0; } - print OUT; + if (/^#pipe\s+(.+)/) { + print OUT `$1`; + } else { + print OUT; + } } } @ifs && die "Unterminated #ifdef";