![]() |
![]()
| ![]() |
![]()
NAMEaegis build - build a change SYNOPSISaegis -Build [ option... ][
filename... ]
DESCRIPTIONThe aegis -Build command is used to build a project. The project configuration file is consulted for the appropriate build command, and that command is executed (see the build_ command and integration_build_command fields in aepconf(5) for more information.) Output of the command is automatically logged to the aegis.log file at the root of the development directory tree. The build command will be executed with its current directory being the root of the development directory, irrespective of there the aegis -Build command was executed. If the change is in the being integrated state, references to the development directory, above, should be read as the integration directory. Integration build commands are executed with the user and group set to the project's owning user and group. That is, it is not necessary for an integrator to log in as someone else, the project account for instance, in order to do an integration. No Build RequiredIt is possible to configure your project so that no build is required. To do this, set the following build_command = "exit 0";
in the project configuration file.
Process Side EffectsThis command will cancel any test registrations, because building the project logically invalidates them. If the project configuration file was deleted, any diff registration will also be canceled. NotificationThe actions of the command are controlled by the build_ command and integration_build_command fields of the project config file. See aepconf(5) for more information. File Action AdjustmentWhen this command runs, it first checks the change files against the projects files. If there are inconsistencies, the file actions will be adjusted as follows:
PARTIAL BUILDIf files are named on the command line, these files are appended to the build command. This is known as a partial build. Partial builds are not legal in the being integrated state, but can often be useful in the being developed state. Partial builds are not recorded in the change status, because builds are decoupled from aegis it is not possible for aegis to know if any set of partial builds is equivalent to a full build. Warning: no change state lock is taken for a partial build, only a baseline read lock. File Name InterpretationThe aegis program will attempt to determine the project file names from the file names given on the command line. All file names are stored within aegis projects as relative to the root of the baseline directory tree. The development directory and the integration directory are shadows of this baseline directory, and so these relative names apply here, too. Files named on the command line are first converted to absolute paths if necessary. They are then compared with the baseline path, the development directory path, and the integration directory path, to determine a baseline‐relative name. It is an error if the file named is outside one of these directory trees. The -BAse_RElative option may be used to cause relative filenames to be interpreted as relative to the baseline path; absolute filenames will still be compared with the various paths in order to determine a baseline‐relative name. The relative_filename_preference in the user configuration file may be used to modify this default behavior. See aeuconf(5) for more information. SYMBOLIC LINKSMany dependency maintenance tools, and indeed some compilers, have little or no support for include file search paths, and thus for the concept of the two‐level directory hierarchy employed by Aegis. (It becomes multi‐level when Aegis' branching functionality is used.) To allow these tools to be used, Aegis provides the ability to maintain a set of symbolic links between the development directory of a change and the baseline of a project, so it appears to these tools that all of the project's files are present in the development directory. Project ConfigurationThe development_directory_style field of the project configuration file controls the appearance of the development directory. See aepconf(5) for more information. By using a setting such as development_directory_style = { By using a setting such as development_directory_style = { When files are copied from the baseline into a change, using the aecp(1) command, the symbolic link pointing into the baseline, if any, will be removed before the file is copied. Note: Using this functionality in either form has implications for how the rules file of the dependency maintenance tool is written. Rules must remove their targets before creating them (usually with an rm -f command) if you use any of the link sub‐fields (both hard links and symbolic links). This is to avoid attempting to write the result on the symbolic link, which will point at a read‐only file in the project baseline. This is similar to the same requirement for using the link_integration_directory field of the project configuration file. User ConfigurationThere is a symbolic_link_preference field in the user configuration file (see aeuconf(5) for more information). This controls whether aeb(1) will verify the symbolic links before the build (default) or whether it will assume they are up‐to‐date. (This field is only relevant if development_directory__style.source_file_symlink is true.) For medium‐to‐large projects, verifying the symbolic links can take as long as the build itself. Assuming the symbolic links are up‐to‐date can be a large time‐saving for these projects. It may be advisable to review your choice of DMT in such a situation. The aedb(1) command does not consult this preference. Thus, in most situations, the symbolic links will be up‐to‐date when the build is performed. The only Aegis function which may result in the symbolic links becoming out‐of‐date is the integration of another change, as this may alter the presence or absence of files in the baseline. In this situation, the default aeb(1) action is to ignore the user preference and the verify symbolic links. There are two command line options which modify aeb(1) behavior further: the -Verify‐Symbolic‐Links option says to verify the symbolic links; and the -Assume‐Symbolic‐Links option says to assume the symbolic links are up‐to‐date. In each case the option over‐rides the default and the user preference. It is possible to obtain behaviour similar to Tom Lord'a Arch by using a setting such as: development_directory_style = { It is possible to obtain behaviour similar to CVS by using a setting such as: development_directory_style = { The symbolic link command line options and preferences apply equally to hard links and file copies (the names have historical origins). THE BASELINE LOCKThe baseline lock is used to ensure that the baseline remains in a consistent state for the duration of commands which need to read the contents of files in the baseline. The commands which require the baseline to be consistent (these include the aeb(1), aecp(1) and aed(1) commands) take a baseline read lock. This is a non‐exclusive lock, so the concurrent development of changes is not hindered. The command which modifies the baseline, aeipass(1), takes a baseline write lock. This is an exclusive lock, forcing aeipass(1) to block until there are no active baseline read locks. It is possible that one of the above development commands will block until an in‐progress aegis -Integrate_PASS completes. This is usually of short duration while the project history is updated. The delay is essential so that these commands receive a consistent view of the baseline. No other integration command will cause the above development commands to block. When aegis' branch functionality is in use, a read (non‐exclusive) lock is taken on the branch baseline and also each of the "parent" baselines. However, a baseline write (exclusive) lock is only taken on the branch baseline; the "parent" baselines are only read (non‐exclusive) locked. METRICSAegis is capable of recording metrics as part of the file attributes of a change. This allows various properties of files to be recorded for later trend analysis, or other uses. The specific metrics are not dictated by Aegis. It is expected that the integration build will create a metrics file for each of the source files the change. These metrics files must be in the format specified by aemetrics(5). The name of the metrics file defaults to “filename,S”, however it may be varied, by setting the metrics_filename_pattern field of the project config file. See aepconf(5) for more information. If such a metrics file exists, for each source file in a change, it will be read and remembered at integrate pass time. If it does not exist, Aegis assumes there are no relevant metrics for that file, and proceeds silently; it is not an error. OPTIONSThe following options are understood:
See also aegis(1) for options common to all aegis commands. All options may be abbreviated; the abbreviation is documented as the upper case letters, all lower case letters and underscores (_) are optional. You must use consecutive sequences of optional letters. All options are case insensitive, you may type them in upper case or lower case or a combination of both, case is not important. For example: the arguments “-project”, “-PROJ” and “-p” are all interpreted to mean the -Project option. The argument “-prj” will not be understood, because consecutive optional characters were not supplied. Options and other command line arguments may be mixed arbitrarily
on the command line, after the function selectors.
The GNU long option names are understood. Since all option names for aegis are long, this means ignoring the extra leading '-'. The “--option=value” convention is also understood. RECOMMENDED ALIASThe recommended alias for this command is csh% alias aeb 'aegis -b \!* -v' sh$ aeb(){aegis -b "$@" -v} ERRORSIt is an error if the change is not assigned to the current user.
EXIT STATUSThe aegis command will exit with a status of 1 on any error. The aegis command will only exit with a status of 0 if there are no errors. ENVIRONMENT VARIABLESSee aegis(1) for a list of environment variables which may affect this command. See aepconf(5) for the project configuration file's project_specific field for how to set environment variables for all commands executed by Aegis. SEE ALSO
COPYRIGHTaegis version 4.25.D510
The aegis program comes with ABSOLUTELY NO WARRANTY; for details
use the 'aegis -VERSion License' command. This is free software and
you are welcome to redistribute it under certain conditions; for details use
the 'aegis -VERSion License' command.
AUTHOR
|