ruby-changes:2117
From: ko1@a...
Date: 3 Oct 2007 17:59:10 +0900
Subject: [ruby-changes:2117] ko1 - Ruby:r13608 (trunk): * benchmark/driver.rb: enable specify label to executable.
ko1 2007-10-03 17:58:56 +0900 (Wed, 03 Oct 2007) New Revision: 13608 Modified files: trunk/ChangeLog trunk/benchmark/driver.rb Log: * benchmark/driver.rb: enable specify label to executable. (-e "ruby1::/path/to/ruby1; ruby2::/path/to/ruby2; ...") http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/benchmark/driver.rb?r1=13608&r2=13607 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13608&r2=13607 Index: ChangeLog =================================================================== --- ChangeLog (revision 13607) +++ ChangeLog (revision 13608) @@ -1,3 +1,8 @@ +Wed Oct 3 17:56:22 2007 Koichi Sasada <ko1@a...> + + * benchmark/driver.rb: enable specify label to executable. + (-e "ruby1::/path/to/ruby1; ruby2::/path/to/ruby2; ...") + Wed Oct 3 16:58:48 2007 Nobuyoshi Nakada <nobu@r...> * parse.y (parser_str_new, parser_yylex, rb_intern3): set code-range Index: benchmark/driver.rb =================================================================== --- benchmark/driver.rb (revision 13607) +++ benchmark/driver.rb (revision 13608) @@ -45,8 +45,14 @@ e.strip! next if e.empty? - v = `#{e} -v`.chomp - v.sub!(/ patchlevel \d+/, '') + if /(.+)::(.+)/ =~ e + # ex) ruby-a::/path/to/ruby-a + v = $1.strip + e = $2 + else + v = `#{e} -v`.chomp + v.sub!(/ patchlevel \d+/, '') + end [e, v] }.compact -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml