Make python refer to python2.7 explicitly
[gruntmaster-daemon.git] / gruntmaster-compile
index cea2733e7a6c10c8ebe128e0bdaca18616e50be5..3a0dac886e9248e41f8f96b9e651d390ec586db8 100755 (executable)
@@ -30,6 +30,7 @@ given ($format){
        exec 'go', qw/build -compiler gccgo/, $name, when 'GCCGO';
        exec 'ghc', qw/-DONLINE_JUDGE -Wall -O2 -o/, $basename, $name when 'HASKELL';
        exec 'rustc', qw/-O -o/, $basename, $name when 'RUST';
+       exec 'ocamlc', qw/-o/, $basename, $name when 'OCAML';
 
        when ('BRAINFUCK') {
                system 'bfc', $name and die "bfc failed: errno=$! return=$?";
@@ -38,15 +39,16 @@ given ($format){
                exit
        }
 
-       when ([qw/GOLFSCRIPT JULIA PERL PYTHON RUBY SBCL/]){
+       when ([qw/GOLFSCRIPT JULIA PERL PHP PYTHON RUBY SBCL/]){
                open IN, '<', $name;
                open OUT, '>', $basename;
-               print OUT "#!/usr/bin/golfscript\n"    if $_ eq 'GOLFSCRIPT';
-               print OUT "#!/usr/bin/julia -O\n"      if $_ eq 'JULIA';
-               print OUT "#!/usr/bin/perl\n"          if $_ eq 'PERL';
-               print OUT "#!/usr/bin/python\n"        if $_ eq 'PYTHON';
-               print OUT "#!/usr/bin/ruby\n"          if $_ eq 'RUBY';
-               print OUT "#!/usr/bin/sbcl --script\n" if $_ eq 'SBCL';
+               print OUT "#!/usr/bin/golfscript\n"                                                             if $_ eq 'GOLFSCRIPT';
+               print OUT "#!/usr/bin/julia -O\n"                                                               if $_ eq 'JULIA';
+               print OUT "#!/usr/bin/perl\n"                                                                   if $_ eq 'PERL';
+               print OUT "#!/usr/bin/php -d ONLINE_JUDGE=true\n"                                               if $_ eq 'PHP';
+               print OUT "#!/usr/bin/python2.7\n"                                                              if $_ eq 'PYTHON';
+               print OUT "#!/usr/bin/ruby\n"                                                                   if $_ eq 'RUBY';
+               print OUT "#!/usr/bin/sbcl --script\n"                                                          if $_ eq 'SBCL';
                print OUT while <IN>;
                close OUT;
                close IN;
@@ -117,6 +119,10 @@ Compile commands for each format:
 
   ghc -DONLINE_JUDGE -Wall -O2 -o $output $input
 
+=item OCAML
+
+  ocamlc -o $output $input
+
 =item RUST
 
   rustc -O -o $output $input
@@ -125,6 +131,10 @@ Compile commands for each format:
 
   cp $input $output
 
+=item PHP
+
+  cp $input $output
+
 =item PYTHON
 
   cp $input $output
This page took 0.010156 seconds and 4 git commands to generate.