Skip to content

Commit

Permalink
[tools/test_summary.pl] improve handling of 'git log' output from cer…
Browse files Browse the repository at this point in the history
…tain git versions
  • Loading branch information
mberends committed Jun 7, 2011
1 parent 048573b commit 484a253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test_summary.pl
Expand Up @@ -305,7 +305,7 @@ sub begin { # this constructor starts simple relative benchmarking
open( $self->{'file_out'}, '>', 'docs/test_summary.times.tmp') or die "cannot create docs/test_summary.times.tmp: $!";
my $parrot_version = qx{./perl6 -e'print \$*VM<config><revision>'};
my $rakudo_version = qx{git log --pretty=oneline --abbrev-commit --max-count=1 .}; chomp $rakudo_version;
$rakudo_version =~ s/^([0-9a-f])+\.\.\./$1/; # delete possible ...
$rakudo_version =~ s/^([0-9a-f]+)\.\.\./$1/; # delete possible ...
$rakudo_version =~ s/\\/\\\\/g; # escape all backslashes
$rakudo_version =~ s/\"/\\\"/g; # escape all double quotes
my $file_out = $self->{'file_out'};
Expand Down

0 comments on commit 484a253

Please sign in to comment.