From: acevest Date: Wed, 2 Sep 2015 03:21:07 +0000 (+0800) Subject: add ruby in cs X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=8da200c14e472621c015fccdade86a99e2ee204b;p=acecode.git add ruby in cs --- diff --git a/tools/comm/cs b/tools/comm/cs index c1b8fdb..3cbb05f 100755 --- a/tools/comm/cs +++ b/tools/comm/cs @@ -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;"; }