| 1 | package System::Info::Cygwin; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use base "System::Info::Linux"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | ▶ | use POSIX (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 2 | our $VERSION = "0.050"; | |
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | System::Info::Cygwin - Object for specific Cygwin info. | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | =head2 $si->prepare_sysinfo() | ||
| 19 | |||
| 20 | Use os-specific tools to find out more about the system. | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | 0 | ▶ | sub prepare_sysinfo { |
|
Subroutine
prepare_sysinfo: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | 0 | my $self = shift; | |
| 26 | 0 | $self->SUPER::prepare_sysinfo; | |
| 27 | |||
| 28 | 0 | return $self; | |
| 29 | } # prepare_sysinfo | ||
| 30 | |||
| 31 | =head2 $si->prepare_os | ||
| 32 | |||
| 33 | Use os-specific tools to find out more about the operating system. | ||
| 34 | |||
| 35 | =cut | ||
| 36 | |||
| 37 | 0 | ▶ | sub prepare_os { |
|
Subroutine
prepare_os: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 38 | 0 | my $self = shift; | |
| 39 | |||
| 40 | 0 | my @uname = POSIX::uname (); | |
| 41 | |||
| 42 | 0 | $self->{__osname} = $uname[0]; | |
| 43 | 0 | $self->{__osvers} = $uname[2]; | |
| 44 | 0 | my $os = join " - " => @uname[0,2]; | |
| 45 | 0 | $os =~ s/(\S+)/\L$1/; | |
| 46 | 0 | $self->{__os} = $os; | |
| 47 | } # prepare_os | ||
| 48 | |||
| 49 | 2 | 1; | |
| 50 | |||
| 51 | __END__ | ||