This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update CPANPLUS::Dist::Build to 0.16
[perl5.git] / lib / CPANPLUS / Dist / Build / Constants.pm
CommitLineData
9b4bd854
JB
1package CPANPLUS::Dist::Build::Constants;
2
3use strict;
e83ba0bd 4use warnings;
9b4bd854
JB
5use File::Spec;
6
7BEGIN {
8
9 require Exporter;
10 use vars qw[$VERSION @ISA @EXPORT];
11
baddfc47 12 $VERSION = '0.16';
9b4bd854
JB
13 @ISA = qw[Exporter];
14 @EXPORT = qw[ BUILD_DIR BUILD ];
15}
16
17
18use constant BUILD_DIR => sub { return @_
19 ? File::Spec->catdir($_[0], '_build')
20 : '_build';
21 };
8431a0ba 22use constant BUILD => sub { my $file = @_
9b4bd854
JB
23 ? File::Spec->catfile($_[0], 'Build')
24 : 'Build';
8431a0ba
JB
25
26 ### on VMS, '.com' is appended when
27 ### creating the Build file
28 $file .= '.com' if $^O eq 'VMS';
29
30 return $file;
9b4bd854
JB
31 };
32
331;
34
e83ba0bd
CBW
35=head1 NAME
36
37CPANPLUS::Dist::Build::Constants - Constants for CPANPLUS::Dist::Build
38
39=head1 SYNOPSIS
40
41 use CPANPLUS::Dist::Build::Constants;
42
43=head1 DESCRIPTION
44
45CPANPLUS::Dist::Build::Constants provides some constants required by L<CPANPLUS::Dist::Build>.
46
47=head1 AUTHOR
48
49Originally by Jos Boumans E<lt>kane@cpan.orgE<gt>. Brought to working
50condition and currently maintained by Ken Williams E<lt>kwilliams@cpan.orgE<gt>.
51
52=head1 LICENSE
53
54The CPAN++ interface (of which this module is a part of) is
55copyright (c) 2001, 2002, 2003, 2004, 2005 Jos Boumans E<lt>kane@cpan.orgE<gt>.
56All rights reserved.
57
58This library is free software;
59you may redistribute and/or modify it under the same
60terms as Perl itself.
61
62=cut
9b4bd854
JB
63
64# Local variables:
65# c-indentation-style: bsd
66# c-basic-offset: 4
67# indent-tabs-mode: nil
68# End:
69# vim: expandtab shiftwidth=4: