=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.
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
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`
+ $ (head -n1 myscript.pl |grep '^#!'; fatpack file; cat myscript.pl) >myscript.packed.pl
+
+The C<head -n1 myscript.pl |grep '^#!'> code pulls out the Unix shebang
+line, if there is one, and injects it at the start of the packed script.
=head1 COPYRIGHT, LICENSE, AUTHOR