Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Module::Install::Substitute
substitute values into files before install

Module::Install::Substitute - substitute values into files before install


NAME


  Module::Install::Substitute - substitute values into files before install


SYNOPSIS


  use inc::Module::Install;

  ...

  substitute(

    {

      LESS => '/usr/bin/less',

      APXS => '/usr/bin/apxs2',

    },

    'bin/my-app'

  );


DESCRIPTION

This is extension for the Module::Install manpage system that allow you to substitute values into files before install, for example paths to libs or binary executables.


METHODS

substitute SUBSTITUTIONS [OPTIONS] FILES

Takes has reference with substituations key value pairs, optional options hash reference and list of files to deal with.

Several options are available:

sufix
Sufix for source files, for example you can use sufix .in and results of processing of Makefile.in would be writen into file Makefile. Note that you don't need to specify sufixes in the list of files.

from
Source base dir.

to
Destination base dir.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy