X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=bin%2Ffatpack;h=83c395ef7a0725145f2ef50f46fbf0c051d8adfe;hb=0858ab66aa74dba45191596ee7b33838e208d911;hp=3024f04b4b304f32ddfd5d1d39afa745ac11e013;hpb=a5e340ba23372cdf9d42d47cf9b4890a8129a7ca;p=p5sagit%2FApp-FatPacker.git diff --git a/bin/fatpack b/bin/fatpack old mode 100644 new mode 100755 index 3024f04..83c395e --- a/bin/fatpack +++ b/bin/fatpack @@ -10,7 +10,8 @@ fatpack - Command line frontend for App::FatPacker =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 +23,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 @@ -59,9 +63,9 @@ from the bundled code rather than disk. Current basic recipe for packing: $ fatpack trace myscript.pl - $ fatpack packlists-for `cat factpacker.trace` >packlists - $ fatpack tree fatlib `cat packlists` - $ (fatpack file; cat myscript.pl) >myscript.packed.pl + $ fatpack packlists-for `cat fatpacker.trace` >packlists + $ fatpack tree `cat packlists` + $ fatpack file myscript.pl >myscript.packed.pl =head1 COPYRIGHT, LICENSE, AUTHOR