1 package Rakudo::Star::Paths;
4 use warnings FATAL => 'all';
5 use File::Basename qw(dirname);
6 use File::Spec::Functions qw(catdir);
9 catdir(dirname(__FILE__), 'Install')
14 catdir($class->base_path, 'bin');
19 'export PATH='.join(':', $class->bin_path, $ENV{PATH}?$ENV{PATH}:())."\n";
24 print shift->env_PATH;
31 Rakudo::Star::Paths - find your rakudo install
35 bash$ perl -MRakudo::Star::Paths
36 export PATH=/path/to/rakudo/star/bin:...
38 bash$ eval $(perl -MRakudo::Star::Paths)
39 # PATH env var is now set
41 bash$ perl -MRakudo::Star::Paths -e 'print Rakudo::Star::Paths->bin_path'
42 /path/to/rakudo/star/bin
46 See L<Rakudo::Star/COPYRIGHT>
50 See L<Rakudo::Star/LICENSE>