Make gruntmaster-compile fail if it cannot exec the compiler
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 25 Jan 2015 13:44:10 +0000 (15:44 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 25 Jan 2015 13:44:10 +0000 (15:44 +0200)
gruntmaster-compile

index b4c2ab1..1641d35 100755 (executable)
@@ -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
This page took 0.024528 seconds and 4 git commands to generate.