From: Marius Gavrilescu Date: Sun, 25 Jan 2015 13:44:10 +0000 (+0200) Subject: Make gruntmaster-compile fail if it cannot exec the compiler X-Git-Tag: 5999.000_005~79 X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=commitdiff_plain;h=0e7e545ae02086908e8bb29710fd47823489a3bb Make gruntmaster-compile fail if it cannot exec the compiler --- 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