=head1 SYNOPSIS
Functions for dealing with the actual compiling/installation of spells
and walking through casts 'pass 4' pipeline.
=head1 DESCRIPTION
Contains functions for the build api version 2
which has the following steps:
PRE_BUILD -> BUILD -> PRE_INSTALL -> INSTALL -> POST_INSTALL ->
FINAL -> TRIGGERS
=head1 COPYRIGHT
Copyright (C) 2002 The Source Mage Team
This runs through the phase 4 pipeline of building and installing a spell for BUILD_API 2.
This phase of casting involves unpacking the source into the source directories. If a PRE_BUILD file exists in SCRIPT_DIRECTORY and is executable it is run in preference to the default_pre_build.
Starts up the compile logs, turns on the various environment settings that need to be on, eventually gets around to running BUILD or default_build.
Turns all the various logs back on that were turned off from after run_build finished, then runs PRE_INSTALL or default_pre_install
load persistent vars, then runs INSTALL or default_install Along with other stuff that needs to be transplanted elsewhere. NOTE: this function is run from delve so installwatch can be invoked around an execed bash shell, this is needed for installwatch to stage root properly
Checks for a POST_BUILD file in SCRIPT_DIRECTORY, and if it is executable, runs it. This file is run after INSTALL and before FINAL. Its purpose is to manipulate the installed files in the stage root and install other tracked files. NOTE: this function is run from delve so installwatch can be invoked around an execed bash shell, this is needed for installwatch to stage root properly
Checks against STAGED_INSTALL and installs the staged spell accordingly
Checks for a FINAL file in SCRIPT_DIRECTORY, and if it is executable, runs it. This file is used for extra files that need to be installed, but not tracked by installwatch.
API
Creates the source directory and unpacks the source package into it. Used if no PRE_BUILD script is found for a spell.
API
Used if no BUILD script is found Default build is:
./configure --build=$BUILD ## --prefix=/usr ## --sysconfdir=/etc ## --localstatedir=/var ## $OPTS && make
API
Used if no PRE_INSTALL script is found Default pre_install is:
prepare_install
API
Used if no INSTALL script is found Default install is:
make install
API
Installs configuration files and documentation. Stops installwatch. Used if no POST_INSTALL script is found for a spell. This is identical to api1's post_build