[Catalyst-commits] r10488 -
Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual
kmx at dev.catalyst.perl.org
kmx at dev.catalyst.perl.org
Tue Jun 9 10:09:20 GMT 2009
Author: kmx
Date: 2009-06-09 10:09:20 +0000 (Tue, 09 Jun 2009)
New Revision: 10488
Modified:
Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Cookbook.pod
Log:
C::Manual - little Cookbook update (PAR creation)
Modified: Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Cookbook.pod
===================================================================
--- Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Cookbook.pod 2009-06-09 09:26:45 UTC (rev 10487)
+++ Catalyst-Manual/5.80/trunk/lib/Catalyst/Manual/Cookbook.pod 2009-06-09 10:09:20 UTC (rev 10488)
@@ -1940,6 +1940,33 @@
% perl Makefile.PL
% make catalyst_par
+You can customise the PAR creation process by special "catalyst_par_*" commands
+available from L<Module::Install::Catalyst>. 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';
+ <snip>
+ ...
+ <snip>
+
+ 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.
More information about the Catalyst-commits
mailing list