~ubuntu-branches/ubuntu/jaunty/libconfig-tiny-perl/jaunty

« back to all changes in this revision

Viewing changes to inc/Module/Install/WriteAll.pm

  • Committer: Bazaar Package Importer
  • Author(s): Dominic Hargreaves
  • Date: 2008-02-26 23:25:04 UTC
  • mfrom: (1.1.6 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080226232504-iug6o5t6e6gjy8lb
Tags: 2.12-1
* New upstream release
* Fix debian/rules rmdir bug (closes: #467732)
* Update Standards-Version (no changes)
* Standardize debian/watch format
* debian/control: add Homepage field
* Fix make distclean lintian warning
* Add copyright statement to debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#line 1
2
 
package Module::Install::WriteAll;
3
 
 
4
 
use strict;
5
 
use Module::Install::Base;
6
 
 
7
 
use vars qw{$VERSION $ISCORE @ISA};
8
 
BEGIN {
9
 
        $VERSION = '0.64';
10
 
        $ISCORE  = 1;
11
 
        @ISA     = qw{Module::Install::Base};
12
 
}
13
 
 
14
 
sub WriteAll {
15
 
    my $self = shift;
16
 
    my %args = (
17
 
        meta        => 1,
18
 
        sign        => 0,
19
 
        inline      => 0,
20
 
        check_nmake => 1,
21
 
        @_
22
 
    );
23
 
 
24
 
    $self->sign(1)                if $args{sign};
25
 
    $self->Meta->write            if $args{meta};
26
 
    $self->admin->WriteAll(%args) if $self->is_admin;
27
 
 
28
 
    if ( $0 =~ /Build.PL$/i ) {
29
 
        $self->Build->write;
30
 
    } else {
31
 
        $self->check_nmake if $args{check_nmake};
32
 
        unless ( $self->makemaker_args->{'PL_FILES'} ) {
33
 
                $self->makemaker_args( PL_FILES => {} );
34
 
        }
35
 
        if ($args{inline}) {
36
 
            $self->Inline->write;
37
 
        } else {
38
 
            $self->Makefile->write;
39
 
        }
40
 
    }
41
 
}
42
 
 
43
 
1;