Changeset 10100


Ignore:
Timestamp:
01/08/10 04:49:36 (2 years ago)
Author:
jquelin
Message:

fix #489: auto-detect dist-zilla based projects

Location:
trunk/Padre/lib/Padre
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Document.pm

    r10087 r10100  
    10591059        -f File::Spec->catpath( $v, $_, 'Makefile.PL' ) 
    10601060            or -f File::Spec->catpath( $v, $_, 'Build.PL' ) 
     1061            or -f File::Spec->catpath( $v, $_, 'dist.ini' ) 
    10611062            or -f File::Spec->catpath( $v, $_, 'padre.yml' ); 
    10621063    } 
  • trunk/Padre/lib/Padre/Util.pm

    r10084 r10100  
    410410        return $dir if -e File::Spec->catfile( $dir, 'Makefile.PL' ); 
    411411        return $dir if -e File::Spec->catfile( $dir, 'Build.PL' ); 
     412        return $dir if -e File::Spec->catfile( $dir, 'dist.ini' ); 
    412413        $olddir = $dir; 
    413414        $dir    = File::Basename::dirname($dir); 
  • trunk/Padre/lib/Padre/Wx/Main.pm

    r10086 r10100  
    18711871            my $make = 'make'; # TODO this should do dmake, nmake on Win32 
    18721872            $self->run_command("$make test"); 
     1873        } elsif ( -e 'dist.ini' ) { 
     1874            $self->run_command("dzil test"); 
    18731875        } else { 
    1874             $self->error( Wx::gettext("No Build.PL nor Makefile.PL found") ); 
     1876            $self->error( Wx::gettext("No Build.PL nor Makefile.PL nor dist.ini found") ); 
    18751877        } 
    18761878    } else { 
Note: See TracChangeset for help on using the changeset viewer.