App-Term-Jump
view release on metacpan or search on metacpan
{
print "Couldn't get git revision, using version from '$file'!\n" ;
return($version) ;
}
}
sub ACTION_author_test
{
my $self = shift;
local $self->{properties}{test_files} = 'xt/author/*.t' ;
$self->SUPER::ACTION_test();
}
sub ACTION_build
{
my $self = shift;
my ($version) = GetVersionAndRevisionFrom('lib/App/Term/Jump.pm') ;
#~ print "Generating version module ($version)\n" ;
sub GetVersion {return '$version'} ;
1 ;
# end of generated version module
EOV
close VERSION ;
$self->SUPER::ACTION_build(@_);
}
sub ACTION_dist
{
my $self = shift;
my $have_git = $self->do_system('git --version');
if($have_git)
{
else
{
print "Couldn't get git log, 'Changes' will not be generated from git log!\n" ;
}
}
else
{
print "git not found, 'Changes' will not be generated from git log!\n" ;
}
$self->SUPER::ACTION_test() ;
#~ $self->ACTION_author_test() ;
$self->SUPER::ACTION_dist();
};
EOC
my $class = Module::Build->subclass(class => 'App::Term::Jump', code => $code) ;
my $build = $class->new
(
module_name => 'App::Term::Jump',
( run in 0.533 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )