From: Pavel Charvat Date: Wed, 17 Jan 2007 00:38:51 +0000 (+0100) Subject: genconf: Stop the compilation if #pipe failed. X-Git-Tag: holmes-import~506^2~111 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3c72743c582ce8a47d2b3f54e33b41777ac64dba;p=libucw.git genconf: Stop the compilation if #pipe failed. --- diff --git a/build/genconf b/build/genconf index 75c957fe..5e2269b0 100755 --- a/build/genconf +++ b/build/genconf @@ -46,6 +46,9 @@ while () { $empty = 1; } else { $empty = 0; } if (/^#pipe\s+(.+)/) { + my $cmd = $1; + my $val = `$cmd`; + die "Piped command '$cmd' failed" if $?; print OUT `$1`; } else { print OUT;