Check that exec() macros havent failed before commencing build

git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8758 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2008-01-27 12:46:47 +00:00
parent 5799b2f9e5
commit 218664f197

View File

@ -316,6 +316,7 @@ sub translate_functions($$)
{
print "Executing program for module \033[1;32m$module\033[0m ... \033[1;32m$1\033[0m\n";
my $replace = `$1`;
die "Can't execute '$1'." if !defined $replace or $replace =~ /Configuration failed/;
chomp($replace);
$line =~ s/exec\("(.+?)"\)/$replace/;
}