| CPANPLUS-Dist-Build documentation | Contained in the CPANPLUS-Dist-Build distribution. |
CPANPLUS::Dist::Build::Constants - Constants for CPANPLUS::Dist::Build
use CPANPLUS::Dist::Build::Constants;
CPANPLUS::Dist::Build::Constants provides some constants required by CPANPLUS::Dist::Build.
Originally by Jos Boumans <kane@cpan.org>. Brought to working condition and currently maintained by Ken Williams <kwilliams@cpan.org>.
The CPAN++ interface (of which this module is a part of) is copyright (c) 2001, 2002, 2003, 2004, 2005 Jos Boumans <kane@cpan.org>. All rights reserved.
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
| CPANPLUS-Dist-Build documentation | Contained in the CPANPLUS-Dist-Build distribution. |
package CPANPLUS::Dist::Build::Constants; use strict; use warnings; use File::Spec; BEGIN { require Exporter; use vars qw[$VERSION @ISA @EXPORT]; $VERSION = '0.56'; @ISA = qw[Exporter]; @EXPORT = qw[ BUILD_DIR BUILD ]; } use constant BUILD_DIR => sub { return @_ ? File::Spec->catdir($_[0], '_build') : '_build'; }; use constant BUILD => sub { my $file = @_ ? File::Spec->catfile($_[0], 'Build') : 'Build'; ### on VMS, '.com' is appended when ### creating the Build file $file .= '.com' if $^O eq 'VMS'; return $file; }; 1;
# Local variables: # c-indentation-style: bsd # c-basic-offset: 4 # indent-tabs-mode: nil # End: # vim: expandtab shiftwidth=4: