ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/App-Staticperl/staticperl.pod
(Generate patch)

Comparing App-Staticperl/staticperl.pod (file contents):
Revision 1.24 by root, Wed Dec 15 00:17:47 2010 UTC vs.
Revision 1.25 by root, Tue Dec 21 12:59:29 2010 UTC

278 -MAnyEvent::Impl::Perl -MAnyEvent::HTTPD -MURI::http 278 -MAnyEvent::Impl::Perl -MAnyEvent::HTTPD -MURI::http
279 279
280 # run it 280 # run it
281 ./app 281 ./app
282 282
283Here are the three phase 2 commands:
284
285=over 4
286
287=item F<staticperl mkbundle> args...
288
289The "default" bundle command - it interprets the given bundle options and
290writes out F<bundle.h>, F<bundle.c>, F<bundle.ccopts> and F<bundle.ldopts>
291files, useful for embedding.
292
293=item F<staticperl mkperl> args...
294
295Creates a bundle just like F<staticperl mkbundle> (in fact, it's the same
296as invoking F<staticperl mkbundle --perl> args...), but then compiles and
297links a new perl interpreter that embeds the created bundle, then deletes
298all intermediate files.
299
300=item F<staticperl mkapp> filename args...
301
302Does the same as F<staticperl mkbundle> (in fact, it's the same as
303invoking F<staticperl mkbundle --app> filename args...), but then compiles
304and links a new standalone application that simply initialises the perl
305interpreter.
306
307The difference to F<staticperl mkperl> is that the standalone application
308does not act like a perl interpreter would - in fact, by default it would
309just do nothing and exit immediately, so you should specify some code to
310be executed via the F<--boot> option.
311
312=back
313
283=head3 OPTION PROCESSING 314=head3 OPTION PROCESSING
284 315
285All options can be given as arguments on the command line (typically 316All options can be given as arguments on the command line (typically
286using long (e.g. C<--verbose>) or short option (e.g. C<-v>) style). Since 317using long (e.g. C<--verbose>) or short option (e.g. C<-v>) style). Since
287specifying a lot of modules can make the command line very cumbersome, 318specifying a lot of modules can make the command line very cumbersome, you
288you can put all long options into a "bundle specification file" (with or 319can put all long options into a "bundle specification file" (one option
289without C<--> prefix) and specify this bundle file instead. 320per line, with or without C<--> prefix) and specify this bundle file
321instead.
290 322
291For example, the command given earlier could also look like this: 323For example, the command given earlier could also look like this:
292 324
293 staticperl mkperl httpd.bundle 325 staticperl mkperl httpd.bundle
294 326
299 use AnyEvent::HTTPD 331 use AnyEvent::HTTPD
300 use URI::http 332 use URI::http
301 add eg/httpd httpd.pm 333 add eg/httpd httpd.pm
302 334
303All options that specify modules or files to be added are processed in the 335All options that specify modules or files to be added are processed in the
304order given on the command line (that affects the C<--use> and C<--eval> 336order given on the command line.
305options at the moment).
306 337
307=head3 PACKAGE SELECTION WORKFLOW 338=head3 PACKAGE SELECTION WORKFLOW
308 339
309F<staticperl mkbundle> has a number of options to control package 340F<staticperl mkbundle> has a number of options to control package
310selection. This section describes how they interact with each other. Also, 341selection. This section describes how they interact with each other. Also,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines