3 # This file is part of App::CPAN2Pkg.
4 # Copyright (c) 2009 Jerome Quelin, all rights reserved.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the same terms as Perl itself.
14 # for testing purposes
15 use FindBin
qw{ $Bin };
16 use lib
"$Bin/../lib";
19 use App
::CPAN2Pkg
::Curses
;
20 use Hook
::Output
::File
;
23 my $dir = _get_development_root
();
25 $hook = Hook
::Output
::File
->redirect(
26 stdout
=> "$dir/cpan2pkg.stdout",
27 stderr
=> "$dir/cpan2pkg.stderr",
32 my $ui = App
::CPAN2Pkg
::Curses
->spawn({modules
=>\
@ARGV});
37 sub _get_development_root
{
39 return $dir if -d
"$dir/.git";