From: Robin Smidsrød Date: Sun, 17 Mar 2013 13:30:36 +0000 (+0100) Subject: Add a bit of documentation about the shebang extraction/injection X-Git-Tag: v0.009014~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cb50b68f68147a118d4dfafcbab3f2fa0cddcf44;p=p5sagit%2FApp-FatPacker.git Add a bit of documentation about the shebang extraction/injection --- diff --git a/bin/fatpack b/bin/fatpack index 3e6cc93..1ad9cb2 100755 --- a/bin/fatpack +++ b/bin/fatpack @@ -67,6 +67,9 @@ Current basic recipe for packing: $ fatpack tree `cat packlists` $ (head -n1 myscript.pl |grep '^#!'; fatpack file; cat myscript.pl) >myscript.packed.pl +The C 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 See the corresponding sections in L. diff --git a/lib/App/FatPacker.pm b/lib/App/FatPacker.pm index e4ca0aa..75ba087 100644 --- a/lib/App/FatPacker.pm +++ b/lib/App/FatPacker.pm @@ -250,6 +250,9 @@ App::FatPacker - pack your dependencies onto your script file $ fatpack tree `cat packlists` $ (head -n1 myscript.pl |grep '^#!'; fatpack file; cat myscript.pl) >myscript.packed.pl +The C code pulls out the Unix shebang +line, if there is one, and injects it at the start of the packed script. + See the documentation for the L script itself for more information. The programmatic API for this code is not yet fully decided, hence the 0.9