]> Zhao Yanbai Git Server - acecode.git/commitdiff
add ruby in cs
authoracevest <zhaoyanbai@126.com>
Wed, 2 Sep 2015 03:21:07 +0000 (11:21 +0800)
committeracevest <zhaoyanbai@126.com>
Wed, 2 Sep 2015 03:21:07 +0000 (11:21 +0800)
tools/comm/cs

index c1b8fdbaffb1ec2dd60c0827951c13fc806b11dc..3cbb05fff12cf82fa7be61554b31adc5aa583c4b 100755 (executable)
@@ -31,7 +31,8 @@ my %s = ("c"        => {CSTYLE},
          "cpp"      => {CSTYLE},
          "h"        => {CSTYLE},
          "pl"       => {env=>"#!/usr/bin/env perl\n",   SSTYLE},
-         "py"       => {env=>"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n", SSTYLE}
+         "py"       => {env=>"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n", SSTYLE},
+         "rb"       => {env=>"#!/usr/bin/env ruby -w\n", SSTYLE}
         );
 
 my $default_index = "default";
@@ -87,6 +88,7 @@ foreach my $file (@ARGV) {
         $f = "H_" . uc($f) . "__";
         $as .= "\n#pragma once\n";
     } elsif($index eq "py") {
+    } elsif($index eq "rb") {
     } elsif($index eq "pl") {
         $as .= "use strict;";
     }