bg-installerreads an installation instruction file from standard input, and executes the instructions in the directory named on the command line.
Each line in the file is an individual instruction. Blank lines and lines beginning with
# are ignored. Lines beginning with
>, if present, instruct bg-installer as to which base directory to use (see below). All other lines must have following format:
? indicating the command should only execute if the source exists. If the
? is followed by a name, it is used instead of
SOURCEas the filename to test.
The target filename is
PREFIX is the value of
$install_prefix if it is set,
TOP is the directory given on the command line, and
FILENAME given in the installation file.
bg-installer encounters a base directory directive, as indicated above, it opens the file named
BASE is the word on the directive line), reads the first line, and uses that as the base directory (prefixed by
$install_prefix as above).