Greg Fast > Archive-SelfExtract-1.3 > mkselfextract

Download:
Archive-SelfExtract-1.3.tar.gz

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source  

NAME ^

mkselfextract - Creates a self-extracting perl script.

SYNOPSIS ^

    mkselfextract source.pl archive.zip > output.pl

    mkselfextract --output=output.pl source.pl archive.zip

DESCRIPTION ^

mkselfextract combines a file containing Perl code and a compressed zip archive into a single file. This file can be run as a Perl program, which as its first action will extract the data in the zip file into a temporary directory.

To create such a self-extracting script, you can do something like the following:

    % zip -r9 distrib.zip src/ doc/ lib/ bin/
    % mkselfextract setup-script.pl distrib.zip > setup.pl

Options

mkselfextract supports the following options:

--output, -o

By default, mkselfextract emits the created script on stdout. The --output option tells it to write the script to the given file instead.

--perlbin, -p

If you need to specify the location of the perl binary, you can override the default /usr/bin/perl with this option. This value is used only for the initial #! line in the created script.

SEE ALSO ^

Archive::SelfExtract, perl.

COPYRIGHT ^

Copyright 2004 Greg Fast (gdf@speakeasy.net)

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: