From: Robin Smidsrød Date: Sun, 17 Mar 2013 13:20:11 +0000 (+0100) Subject: Improve example to include shebang line X-Git-Tag: v0.009014~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=24b4367ec49fb45ad0a6200d4062799fafcf5ee8;p=p5sagit%2FApp-FatPacker.git Improve example to include shebang line --- diff --git a/bin/fatpack b/bin/fatpack index e56350d..3e6cc93 100755 --- a/bin/fatpack +++ b/bin/fatpack @@ -65,7 +65,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 + $ (head -n1 myscript.pl |grep '^#!'; fatpack file; cat myscript.pl) >myscript.packed.pl =head1 COPYRIGHT, LICENSE, AUTHOR diff --git a/lib/App/FatPacker.pm b/lib/App/FatPacker.pm index 3de2e25..e4ca0aa 100644 --- a/lib/App/FatPacker.pm +++ b/lib/App/FatPacker.pm @@ -248,7 +248,7 @@ App::FatPacker - pack your dependencies onto your script file $ fatpack trace myscript.pl $ fatpack packlists-for `cat fatpacker.trace` >packlists $ fatpack tree `cat packlists` - $ (fatpack file; cat myscript.pl) >myscript.packed.pl + $ (head -n1 myscript.pl |grep '^#!'; fatpack file; cat myscript.pl) >myscript.packed.pl See the documentation for the L script itself for more information.