Alien-astyle

 view release on metacpan or  search on metacpan

inc/My/ModuleBuild.pm  view on Meta::CPAN

package My::ModuleBuild;
use strict;
use warnings;
our $VERSION = 0.023_000;

use Alien::Base::ModuleBuild;
use base qw( Alien::Base::ModuleBuild );

use File::chdir;
use Capture::Tiny qw( capture_merged );
use Data::Dumper;
use IPC::Cmd qw(can_run);
use English qw(-no_match_vars);  # for $CHILD_ERROR & $OSNAME
use Env qw( @PATH );

sub alien_check_installed_version {
    # check if `astyle` can be run, if so get path to binary executable
    my $astyle_path = undef;
#    print {*STDERR} '<<< DEBUG >>>: in ModuleBuild::alien_check_installed_version(), have $OSNAME = ', $OSNAME, "\n";
    if ($OSNAME eq 'MSWin32') {
        $astyle_path = can_run('AStyle.exe');



( run in 1.085 second using v1.01-cache-2.11-cpan-4d50c553e7e )