TITLE
tools/dev/install_files.pl - Copy files to their correct locations
SYNOPSIS
% perl tools/dev/install_files.pl [options]
DESCRIPTION
Use a detailed MANIFEST to install a set of files.
Options
buildprefix
The build prefix. Defaults to ''.
prefix
The install prefix. Defaults to '/usr'.
exec_prefix
The exec prefix. Defaults to '/usr'.
bindir
The executables directory. Defaults to '/usr/bin'.
libdir
The library directory. Defaults to '/usr/lib'.
includedir
The header directory. Defaults to '/usr/include'.
MANIFEST Format
The format of the MANIFEST (currently MANIFEST and MANIFEST.generated are used) is:
source_path <whitespace> [package]meta1,meta2,...
or you may optionally specify a different destination path:
source_path <whitespace> [package]meta1,meta2,... <whitespace> destination
Additionally, there may be a * in front of the whole line to designate a generated file:
source_path <whitespace> *[package]meta1,meta2,... <whitespace> destination
The square brackets around package
are literal. package
gives the name of the RPM that the given file will be installed for, and is only used by this script to skip files that are not members of any package.
The various meta flags recognized are:
doc
Tag this file with %doc in the RPM, and omit the leading path (because rpm will put it into a directory of its choosing)
include
Write this file to the location given by the lib
Write this file to the location given by the bin
Write this file to the location given by the
--includedir
option
--libdir
option
--bindir
optionThe optional destination
field provides a general way to change where a file will be written to. It will be applied before any metadata tags.
Example: if this line is in the MANIFEST.generated file
languages/snorkfest/snork-compile [main]bin
and the --bindir=/usr/parroty/bin, then the generated parrot-<VERSION>-1.<arch>.rpm file will contain the file /usr/parroty/bin/snork-compile.
SEE ALSO
tools/dev/mk_manifests.pl