Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

extutils::install(3pm) [redhat man page]

ExtUtils::Install(3pm)					 Perl Programmers Reference Guide				    ExtUtils::Install(3pm)

NAME
ExtUtils::Install - install files from here to there SYNOPSIS
use ExtUtils::Install; install($hashref,$verbose,$nonono); uninstall($packlistfile,$verbose,$nonono); pm_to_blib($hashref); DESCRIPTION
Both install() and uninstall() are specific to the way ExtUtils::MakeMaker handles the installation and deinstallation of perl modules. They are not designed as general purpose tools. install() takes three arguments. A reference to a hash, a verbose switch and a don't-really-do-it switch. The hash ref contains a mapping of directories: each key/value pair is a combination of directories to be copied. Key is a directory to copy from, value is a directory to copy to. The whole tree below the "from" directory will be copied preserving timestamps and permissions. There are two keys with a special meaning in the hash: "read" and "write". After the copying is done, install will write the list of target files to the file named by "$hashref->{write}". If there is another file named by "$hashref->{read}", the contents of this file will be merged into the written file. The read and the written file may be identical, but on AFS it is quite likely that people are installing to a different directory than the one where the files later appear. install_default() takes one or less arguments. If no arguments are specified, it takes $ARGV[0] as if it was specified as an argument. The argument is the value of MakeMaker's "FULLEXT" key, like Tk/Canvas. This function calls install() with the same arguments as the defaults the MakeMaker would use. The argument-less form is convenient for install scripts like perl -MExtUtils::Install -e install_default Tk/Canvas Assuming this command is executed in a directory with a populated blib directory, it will proceed as if the blib was build by MakeMaker on this machine. This is useful for binary distributions. uninstall() takes as first argument a file containing filenames to be unlinked. The second argument is a verbose switch, the third is a no-don't-really-do-it-now switch. pm_to_blib() takes a hashref as the first argument and copies all keys of the hash to the corresponding values efficiently. Filenames with the extension pm are autosplit. Second argument is the autosplit directory. If third argument is not empty, it is taken as a filter com- mand to be ran on each .pm file, the output of the command being what is finally copied, and the source for auto-splitting. You can have an environment variable PERL_INSTALL_ROOT set which will be prepended as a directory to each installed file (and directory). perl v5.8.0 2002-06-01 ExtUtils::Install(3pm)

Check Out this Related Man Page

File::ShareDir::Install(3pm)				User Contributed Perl Documentation			      File::ShareDir::Install(3pm)

NAME
File::ShareDir::Install - Install shared files SYNOPSIS
use ExtUtils::MakeMaker; use File::ShareDir::Install; install_share 'share'; install_share dist => 'dist-share'; install_share module => 'My::Module' => 'other-share'; WriteMakefile( ... ); # As you normaly would package MY; use File::ShareDir::Install qw(postamble); DESCRIPTION
File::ShareDir::Install allows you to install read-only data files from a distribution. It is a companion module to File::ShareDir, which allows you to locate these files after installation. It is a port Module::Install::Share to ExtUtils::MakeMaker with the improvement of only installing the files you want; ".svn" and other source-control junk will be ignored. EXPORT
install_share install_share $dir; install_share dist => $dir; install_share module => $module, $dir; Causes all the files in $dir and its sub-directories. to be installed into a per-dist or per-module share directory. Must be called before WriteMakefile. The first 2 forms are equivalent. The files will be installed when you run "make install". To locate the files after installation so they can be used inside your module, see File::ShareDir. my $dir = File::ShareDir::module_dir( $module ); Note that if you make multiple calls to "install_share" on different directories that contain the same filenames, the last of these calls takes precedence. In other words, if you do: install_share 'share1'; install_share 'share2'; And both "share1" and "share2" contain a fill called "info", the file "share2/info" will be installed into your "dist_dir()". postamble Exported into the MY package. Only documented here if you need to write your own postable. package MY; use File::ShareDir::Install; sub postamble { my $self = shift; my @ret = File::ShareDir::Install::postamble( $self ); # ... add more things to @ret; return join " ", @ret; } SEE ALSO
File::ShareDir, Module::Install. AUTHOR
Philip Gwyn, <gwyn-AT-cpan.org> COPYRIGHT AND LICENSE
Copyright (C) 2009-2011 by Philip Gwyn This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. perl v5.12.4 2011-08-26 File::ShareDir::Install(3pm)
Man Page