Skip to content

Commit

Permalink
report parrot revision in --version output
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jul 16, 2010
1 parent 0b3a0ec commit d0df858
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Perl6/Compiler.pir
Expand Up @@ -224,9 +224,16 @@ Perl6::Compiler - Perl6 compiler
.end

.sub 'version' :method
.local pmc interp, config, rev
interp = getinterp
config = interp[.IGLOBALS_CONFIG_HASH]
rev = config['revision']

say ''
print 'This is Rakudo Perl 6, version '
say .RAKUDO_VERSION
print .RAKUDO_VERSION
print ' built on parrot r'
say rev
say ''
say 'Copyright 2008-2010, The Perl Foundation'
say ''
Expand Down

0 comments on commit d0df858

Please sign in to comment.