Add javascript
[gruntmaster-daemon.git] / gruntmaster-compile
index 2538cde310777a7dcd17f43f34e1128bfcbbe085..3599621a741b3dab66170af972b7d349575b31e7 100755 (executable)
@@ -41,11 +41,12 @@ given ($format){
                exit
        }
 
-       when ([qw/GOLFSCRIPT JULIA PERL PHP PYTHON PYTHON3 RUBY SBCL/]){
+       when ([qw/GOLFSCRIPT JAVASCRIPT JULIA PERL PHP PYTHON PYTHON3 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/node\n"                                                                   if $_ eq 'JAVASCRIPT';
                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';
This page took 0.009329 seconds and 4 git commands to generate.