Chad Granum > App-PPBuild-0.18 > inc::App::PPBuild

Download:
app-ppbuild/App-PPBuild-0.18.tar.gz

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

inc::App::PPBuild - Copies App::PPBuild to inc/ then loads App::PPBuild.

DESCRIPTION ^

Use this instead of App::PPBuild if you want PPBuild to bundle itself into your project/module. It is similar to Module::Install, it copies itself and all App::PPBuild::* modules that are loaded into the ./inc/ directory.

SYNOPSIS ^

PPBFile:

    use inc::App::PPBuild;

    ... Define tasks ...

    # call do_tasks() st the end of your PPBFile so that you can call the
    # PPBFile directly. inc::App::PPBuild does not make the ppbuild script
    # available.
    do_tasks();

    1;

FUNCTIONS ^

These are subject to change and are not made available through exporter.

include()

Copy the specified module to the inc/ directory. Module should be in 'relative/path/to/module.pm' format.

mkpath()

Essentially a recursive mkdir(). Also strips the module off the end of the path. mkpath('path/to/module.pm') will create the 'path/to' directory tree.

_mkrdir()

Recursive function to create each directory in a chain of directories.

To make dir: path/to:

    _mkdir( '.', 'path', 'to' );

AUTHOR ^

Chad Granum <exodist7@gmail.com>

COPYRIGHT ^

Copyright 2009 Chad Granum

licensed under the GPL version 3. You should have received a copy of the GNU General Public License along with this. If not, see <http://www.gnu.org/licenses/>.