NAME
Synopsis#!/usr/bin/perl use lib "$ENV{'INSTALL'}/lib";
use lib "$ENV{'INSTALL'}/lib/perl5";
use strict;
use warnings;
use Local::Build; use Local::Config; # ---------------- my($config) = Local::Config::get_config();
my($build) = Local::Build -> new
(
install_dir => $ENV{'INSTALL'}, # Unix only.
post_install_dir => "$$config{'module_dir'}/manual",
uninstall => 0,
verbose => 1,
);
for (grep{! /^$/} map{s/^(.*?)#(.*)$/$1/; s/^\s+//; s/\s+$//; $_} <DATA>)
{
last if (/__END__/);
$build -> install($_); } # Notes: # o If module B depends on module A, list A first, then B. __DATA__ Local::Config Local::CheckDistro Local::Run3 Local::Build __END__ Local::Killer::App Description
Constructor and initializationnew(...) returns a This is the class's contructor. Usage: Local::Build -> new().
Method: build('Some::Module')Returns nothing. Given a E.g.:
Method: generate_announcement('Some::Module')Returns nothing. Given the dirs as listed under Note: Check for an existing distro file in Method: generate_readme('Some::Module')Returns nothing. Given the dirs as listed under Note: Check for an existing distro file in Method: install('Some::Module')Returns nothing. Given a Note: If there are other versions of the same module laying about, I move them into ./misc/. Method: log($s)Returns nothing. Append $s to the log buffer. Conveniently, $s can contain embedded new-lines. Method: module_names()Returns a sorted array ref of module names in 'Some::Module' format. This array ref will not contain duplicates. Method: real_clean('Some::Module')Returns nothing. Change dir into a module's distro dir and delete lots of files. Method: report_install_errors('Installer name', 'File name')Returns nothing. Read the source of the installer, e.g. auto/manual/mine.pl, and read the log of running the installed, and use the names of the modules being installed, from the installer, to find interesting things in the log. Method: test_build('Some::Module')Returns nothing. Try building a module. Required ModulesResourceshttp://savage.net.au/Perl-modules/html/local-module-overview.html Author
Home page: http://savage.net.au/index.html CopyrightAustralian copyright © 2004, Ron Savage. All rights reserved. All Programs of mine are 'OSI Certified Open Source Software'; you can redistribute them and/or modify them under the terms of The Artistic License, a copy of which is available at: http://www.opensource.org/licenses/index.html |
| Top of page |