From: KMX Date: Tue, 9 Jun 2009 10:09:20 +0000 (+0000) Subject: C::Manual - little Cookbook update (PAR creation) X-Git-Tag: v5.8005~120 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=3f3d414bc098dd54d0d5161dbe7ab022a1ed8cb4 C::Manual - little Cookbook update (PAR creation) --- diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index ca49cf3..6a4c2fc 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -1940,6 +1940,33 @@ L, which simplifies the process greatly. From the sh % perl Makefile.PL % make catalyst_par +You can customise the PAR creation process by special "catalyst_par_*" commands +available from L. You can add these commands in your +Makefile.PL just before the line containing "catalyst;" + + #Makefile.PL example with extra PAR options + use inc::Module::Install; + + name 'MyApp'; + all_from 'lib\MyApp.pm'; + + requires 'Catalyst::Runtime' => '5.80005'; + + ... + + + catalyst_par_core(1); # bundle perl core modules in the resulting PAR + catalyst_par_multiarch(1); # build a multi-architecture PAR file + catalyst_par_classes(qw/ + Some::Additional::Module + Some::Other::Module + /); # specify additional modules you want to be included into PAR + catalyst; + + install_script glob('script/*.pl'); + auto_install; + WriteAll; + Congratulations! Your package "myapp.par" is ready, the following steps are just optional.