X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=script%2Fcatalyst.pl;h=34a6f94f022d090be1e22590238822e35db8162d;hb=543928ac8766eea78caf774ba44fd59b185e81df;hp=85d30c9e73dc878d4de4fc93130a73ffe0ca3b68;hpb=b4b01a8af03edee28ae4d64b054dea6ea51fb511;p=catagits%2FCatalyst-Runtime.git diff --git a/script/catalyst.pl b/script/catalyst.pl index 85d30c9..34a6f94 100755 --- a/script/catalyst.pl +++ b/script/catalyst.pl @@ -3,7 +3,8 @@ use strict; use Getopt::Long; use Pod::Usage; -use Catalyst::Helper; +eval 'use Catalyst::Helper "1.0";'; +die "Please install Catalyst::Helper!\n" if $@; my $force = 0; my $help = 0; @@ -21,12 +22,14 @@ GetOptions( pod2usage(1) if ( $help || !$ARGV[0] ); -my $helper = Catalyst::Helper->new( { - '.newfiles' => !$force, - 'makefile' => $makefile, - 'scripts' => $scripts, - 'short' => $short, -} ); +my $helper = Catalyst::Helper->new( + { + '.newfiles' => !$force, + 'makefile' => $makefile, + 'scripts' => $scripts, + 'short' => $short, + } +); pod2usage(1) unless $helper->mk_app( $ARGV[0] ); 1;