]> mj.ucw.cz Git - libucw.git/blobdiff - build/genconf
Use big_alloc().
[libucw.git] / build / genconf
index b088a142d17c072f9f7ed7b598d14d259d32f379..0d7bc7370e24dd0b423a940c5265cf0e2dd385fb 100755 (executable)
@@ -10,7 +10,7 @@ use warnings;
 open CF, $ARGV[2] or die "Unable to open $ARGV[2]";
 my %options = ();
 while (<CF>) {
 open CF, $ARGV[2] or die "Unable to open $ARGV[2]";
 my %options = ();
 while (<CF>) {
-       /^(CONFIG_\w+)=1/ || next;
+       /^(CONFIG_\w+)=[^0]/ || next;
        $options{$1} = 1;
 }
 close CF;
        $options{$1} = 1;
 }
 close CF;
@@ -36,7 +36,11 @@ while (<IN>) {
                        $empty && next;
                        $empty = 1;
                } else { $empty = 0; }
                        $empty && next;
                        $empty = 1;
                } else { $empty = 0; }
-               print OUT;
+               if (/^#pipe\s+(.+)/) {
+                       print OUT `$1`;
+               } else {
+                       print OUT;
+               }
        }
 }
 @ifs && die "Unterminated #ifdef";
        }
 }
 @ifs && die "Unterminated #ifdef";