Shlomi Fish

NAME

HTML::Latemp::GenMakeHelpers - A Latemp Utility Module.

SYNOPSIS

    use HTML::Latemp::GenMakeHelpers;

    my $generator =
        HTML::Latemp::GenMakeHelpers->new(
            'hosts' =>
            [ map {
                +{ 'id' => $_, 'source_dir' => $_,
                    'dest_dir' => "\$(ALL_DEST_BASE)/$_-homepage"
                }
            } (qw(common t2 vipe)) ],
        );

    $generator->process_all();

API METHODS

my $generator = HTML::Latemp::GenMakeHelpers->new('hosts => [@hosts])

Construct an object with the host defined in @hosts.

$generator->process_all()

Process all hosts.

INTERNAL METHODS

initialize()

Called by the constructor to initialize the object. Can be sub-classes by derived classes.

$generator->get_initial_buckets($host)

Get the initial buckets for the host $host.

$generator->get_buckets($host)

Get the processed buckets.

$self->get_non_bucketed_files($host)

Get the files that were not placed in any bucket.

$self->place_files_into_buckets($host, $files, $buckets)

Sort the files into the buckets.

$self->get_rules_template($host)

Get the makefile rules template for the host $host.

$self->process_host($host)

Process the host $host.

AUTHOR

Shlomi Fish, <shlomif@iglu.org.il>

BUGS

Please report any bugs or feature requests to bug-html-latemp-genmakehelpers@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-Latemp-GenMakeHelpers. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2005 Shlomi Fish, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the MIT X11 License.