X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=bin%2Ffatpack;h=b9aa5a14c19954219f082a14fba40f1ea3e1da44;hb=cf20bfa307182c74a367312d0a30e95854a378f5;hp=536073c12171ea2a468eb4fd8a81f2729f55aa37;hpb=a884f0d7e02a1241b6816e0b4fc609090083a3f7;p=p5sagit%2FApp-FatPacker.git diff --git a/bin/fatpack b/bin/fatpack index 536073c..b9aa5a1 100755 --- a/bin/fatpack +++ b/bin/fatpack @@ -1,4 +1,4 @@ -#!/usr/bin/env perl +#!/usr/bin/perl use App::FatPacker -run_script; @@ -8,9 +8,19 @@ fatpack - Command line frontend for App::FatPacker =head1 COMMANDS +=head2 pack + + $ fatpack pack myscript.pl > myscript.packed.pl + +A shortcut to do all the work of tracing, collecting packlists, +extracting modules in fatlib, then concatenating into a packed script +- in one shot. If you need more detailed controls for additional +modules, use the following commands separately (see L). + =head2 trace - $ fatpack trace [--to=trace-file|--to-stderr] myscript.pl + $ fatpack trace [--to=trace-file|--to-stderr] [--use=MODULE] + myscript.pl Compiles myscript.pl (as in "perl -c") and writes out a trace file containing every module require()d during the compilation. @@ -22,6 +32,9 @@ If you pass --to-stderr fatpack writes the trace to STDERR instead. You cannot pass both --to and --to-stderr. +If the --use option specifies a module (or modules, if used multiple +times) those modules will be additionally included in the trace output. + =head2 packlists-for $ fatpack packlists-for Module1 Module2 Module3 @@ -61,7 +74,7 @@ Current basic recipe for packing: $ fatpack trace myscript.pl $ fatpack packlists-for `cat fatpacker.trace` >packlists $ fatpack tree `cat packlists` - $ (fatpack file; cat myscript.pl) >myscript.packed.pl + $ fatpack file myscript.pl >myscript.packed.pl =head1 COPYRIGHT, LICENSE, AUTHOR