Re: [Module::Build] Document install_base_relpaths
Status: Beta
Brought to you by:
kwilliams
From: Randy W. S. <ml...@th...> - 2006-04-08 01:47:14
|
David Wheeler wrote: > On Apr 7, 2006, at 15:52, Randy W. Sims wrote: > >> If 'install_path' is set, elements will be installed to the set location. > > Right, sure. > >> If 'install_base' is set, and the author provides a relpath via >> install_base_relpath(), elements will be installed to >> install_base/relpath. > > Perfect. > >> If 'prefix' is set, and the author provides a relpath via >> prefix_relpath(), elements will be installed to prefix/relpath. > > Oh, huh. So I need to specify both install_base_relpath *and* > prefix_relpath? Why wouldn't both be covered by a single method call? Yes, since prefix and install_base are different path layouts, it makes sense to require them to be set separately so that the author thinks about the different layouts. >> Otherwise it will not be installed. > > So as a module author, if I require that it be installed, I just need to > make sure that both install_base_relpath and prefix_relpath are > specified and that the user use either install_path, install_base, or > prefix, right? Right. See in my previous example[1] how I checked for those settings and issued a warning to the user when none were supplied. Randy. 1. <http://article.gmane.org/gmane.comp.lang.perl.modules.module-build/3607/> |