line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::AssertOS::Linux; |
2
|
|
|
|
|
|
|
|
3
|
12
|
|
|
12
|
|
1391
|
use Devel::CheckOS; |
|
12
|
|
|
|
|
21
|
|
|
12
|
|
|
|
|
497
|
|
4
|
12
|
|
|
12
|
|
57
|
use strict; |
|
12
|
|
|
|
|
21
|
|
|
12
|
|
|
|
|
218
|
|
5
|
12
|
|
|
12
|
|
56
|
use warnings; |
|
12
|
|
|
|
|
18
|
|
|
12
|
|
|
|
|
304
|
|
6
|
12
|
|
|
12
|
|
52
|
no warnings 'redefine'; |
|
12
|
|
|
|
|
22
|
|
|
12
|
|
|
|
|
1808
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '1.3'; |
9
|
|
|
|
|
|
|
|
10
|
57
|
|
|
57
|
0
|
289
|
sub subtypes { qw(Android) } |
11
|
2
|
|
|
2
|
0
|
5
|
sub matches { ('Linux', subtypes()) } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub os_is { |
14
|
|
|
|
|
|
|
( |
15
|
|
|
|
|
|
|
# order is important |
16
|
55
|
100
|
100
|
55
|
0
|
194
|
Devel::CheckOS::os_is(subtypes()) || |
17
|
|
|
|
|
|
|
$^O =~ /^linux$/i |
18
|
|
|
|
|
|
|
) ? 1 : 0; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Devel::CheckOS::die_unsupported() unless(os_is()); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub expn { |
24
|
1
|
|
|
1
|
0
|
58
|
"The operating system has a Linux kernel" |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 COPYRIGHT and LICENCE |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Copyright 2007 - 2014 David Cantrell |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |