line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
1815
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
122
|
|
2
|
3
|
|
|
3
|
|
10
|
use warnings; |
|
3
|
|
|
|
|
2
|
|
|
3
|
|
|
|
|
204
|
|
3
|
|
|
|
|
|
|
package Alien::astyle; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.008000'; |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
19
|
use base qw( Alien::Base ); |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
1430
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
1; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__END__ |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=pod |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=encoding UTF-8 |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Alien::astyle - Find or build astyle, the Artistic Style code formatter |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SYNOPSIS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
From a Perl script |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
use Alien::astyle; |
26
|
|
|
|
|
|
|
use Env qw(@PATH); |
27
|
|
|
|
|
|
|
unshift @PATH, Alien::astyle->bin_dir(); # `astyle` command is now in your path |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
From Alien::Base Build.PL |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
use Alien:Base::ModuleBuild; |
32
|
|
|
|
|
|
|
my $builder = Module::Build->new( |
33
|
|
|
|
|
|
|
... |
34
|
|
|
|
|
|
|
alien_bin_requires => [ 'Alien::astyle' ], |
35
|
|
|
|
|
|
|
... |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
$builder->create_build_script; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 DESCRIPTION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This package can be used by other CPAN modules that require astyle. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 AUTHOR |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
William N. Braswell, Jr. <wbraswell@cpan.org> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This software is copyright (c) 2017 by William N. Braswell, Jr.; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
52
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |