1 package CPANPLUS::Dist::Build::Constants;
10 use vars qw[$VERSION @ISA @EXPORT];
14 @EXPORT = qw[ BUILD_DIR BUILD CPDB_PERL_WRAPPER];
18 use constant BUILD_DIR => sub { return @_
19 ? File::Spec->catdir($_[0], '_build')
22 use constant BUILD => sub { my $file = @_
23 ? File::Spec->catfile($_[0], 'Build')
26 ### on VMS, '.com' is appended when
27 ### creating the Build file
28 $file .= '.com' if $^O eq 'VMS';
34 use constant CPDB_PERL_WRAPPER => 'use strict; BEGIN { my $old = select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv = do($0); die $@ if $@; }';
40 CPANPLUS::Dist::Build::Constants - Constants for CPANPLUS::Dist::Build
44 use CPANPLUS::Dist::Build::Constants;
48 CPANPLUS::Dist::Build::Constants provides some constants required by L<CPANPLUS::Dist::Build>.
52 Originally by Jos Boumans E<lt>kane@cpan.orgE<gt>. Brought to working
53 condition and currently maintained by Ken Williams E<lt>kwilliams@cpan.orgE<gt>.
57 The CPAN++ interface (of which this module is a part of) is
58 copyright (c) 2001, 2002, 2003, 2004, 2005 Jos Boumans E<lt>kane@cpan.orgE<gt>.
61 This library is free software;
62 you may redistribute and/or modify it under the same
68 # c-indentation-style: bsd
70 # indent-tabs-mode: nil
72 # vim: expandtab shiftwidth=4: