]> mj.ucw.cz Git - libucw.git/commitdiff
genconfig can include program's output (should be deterministic)
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Thu, 12 Oct 2006 14:59:36 +0000 (16:59 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Thu, 12 Oct 2006 14:59:36 +0000 (16:59 +0200)
build/genconf

index 7a53dc1b3c824749ec689b0a30db8d93feecef47..c509ba277bfb4a253199ff898d89c968345579a8 100755 (executable)
@@ -36,7 +36,11 @@ while (<IN>) {
                        $empty && next;
                        $empty = 1;
                } else { $empty = 0; }
-               print OUT;
+               if (/^#run\s+(.+)/) {
+                       print OUT `$1`;
+               } else {
+                       print OUT;
+               }
        }
 }
 @ifs && die "Unterminated #ifdef";