From 0e7e545ae02086908e8bb29710fd47823489a3bb Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 25 Jan 2015 15:44:10 +0200 Subject: [PATCH] Make gruntmaster-compile fail if it cannot exec the compiler --- gruntmaster-compile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gruntmaster-compile b/gruntmaster-compile index b4c2ab1..1641d35 100755 --- a/gruntmaster-compile +++ b/gruntmaster-compile @@ -24,10 +24,15 @@ if ($ret) { exec 'go', qw/build -compiler gc/, $name when 'GOLANG'; exec 'go', qw/build -compiler gccgo/, $name, when 'GCCGO'; exec 'ghc', qw/-DONLINE_JUDGE -Wall -O2 -o/, $basename, $name when 'HASKELL'; - copy $name, $basename when ['PERL', 'PYTHON'] + + when ([qw/PERL PYTHON/]){ + copy $name, $basename; + exit + } } } +exit 1; __END__ =encoding utf-8 -- 2.30.2