Alien-wxWidgets
view release on metacpan or search on metacpan
inc/My/Build/Utility.pm view on Meta::CPAN
package My::Build::Utility;
use strict;
use base qw(Exporter);
use Config;
use Fatal qw(open);
our @EXPORT_OK = qw(awx_arch_file awx_install_arch_file
awx_install_arch_auto_file
awx_arch_dir awx_install_arch_dir awx_touch);
sub awx_arch_file {
my( $vol, $dir, $file ) = File::Spec->splitpath( $_[0] || '' );
File::Spec->catfile( 'blib', 'arch', 'Alien', 'wxWidgets',
File::Spec->splitdir( $dir ), $file );
}
sub awx_arch_dir {
my( $vol, $dir, $file ) = File::Spec->splitpath( $_[0] || '' );
File::Spec->catdir( 'blib', 'arch', 'Alien', 'wxWidgets',
File::Spec->splitdir( $dir ), $file );
}
sub awx_install_arch_file {
my( $build, $p ) = @_;
my( $vol, $dir, $file ) = File::Spec->splitpath( $p || '' );
File::Spec->catfile( $build->install_destination( 'arch' ), 'Alien', 'wxWidgets',
File::Spec->splitdir( $dir ), $file );
}
sub awx_install_arch_dir {
my( $build, $p ) = @_;
my( $vol, $dir, $file ) = File::Spec->splitpath( $p || '' );
File::Spec->catdir( $build->install_destination( 'arch' ), 'Alien', 'wxWidgets',
File::Spec->splitdir( $dir ), $file );
}
sub awx_install_arch_auto_file {
my( $build, $p ) = @_;
my( $vol, $dir, $file ) = File::Spec->splitpath( $p || '' );
File::Spec->catfile( $build->install_destination( 'arch' ), 'auto', 'Alien', 'wxWidgets',
File::Spec->splitdir( $dir ), $file );
}
sub awx_touch {
require ExtUtils::Command;
local @ARGV = @_;
ExtUtils::Command::touch();
}
1;
( run in 0.573 second using v1.01-cache-2.11-cpan-39bf76dae61 )