Domanda

Cercando l'interruttore -v, ottengo la revisione pappagallo svn:

$ perl6 -v
This compiler is built with the Parrot Compiler Toolkit, parrot revision 45822.

ma come faccio a sapere il versione Rakudo , o un vx.xx o {some-git-hash}?

Grazie,

È stato utile?

Soluzione

Al momento non è possibile sapere: (

C'è una patch per quella in RT che attende recensione: http: //rt.perl.org/rt3/Ticket/Display.html?id=73148 ma finora non è stato ancora applicato.

Aggiornamento: Con una nuova sufficientemente Rakudo, si ottiene:

$ perl6 -v

This is Rakudo Perl 6, version 2010.06-212-g1086ff8

Copyright 2008-2010, The Perl Foundation

Se la cosa dopo "versione" è l'uscita git describe.

Altri suggerimenti

perl6 -v ora funziona. Esso fornisce l'ultimo rilascio mensile, il numero di commit da allora, e l'hash git.

Il $*PERL speciale variabile può fornire il suggerimento

> $*PERL.compiler
rakudo (2018.04.1)

> $*PERL.compiler.^attributes                                                                                                                                                                                     
(Str $!id Str $!release Str $!build-date Str $!codename Str $!name Str $!auth Version $!version Blob $!signature Str $!desc)

> $*PERL.compiler.^methods'                                                                                                                                                                                            
(BUILD build-date verbose-config Str gist id release codename name auth version signature desc BUILDALL) 

> $*PERL.compiler.name                                                                                                                                                                                       
rakudo

> $*PERL.compiler.version                                                                                                                                                                                       
v2018.04.1 

> $*PERL.compiler.auth                         
The Perl Foundation  

> $*PERL.compiler.build-date  # This being the date it was built on my machine                                                                                                                                                                                    
2018-05-18T21:59:11Z 

> $*PERL.compiler.verbose-config
...
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top